boostorg / boostorg/optional

optimization for trivial T's

Open
#105 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
60
Forks
75
PR merge metrics
No merged PRs in 30d

Description

Currently optional provides optimized storage for scalar types:
https://github.com/boostorg/optional/blob/develop/include/boost/optional/optional.hpp#L900

Generalize it for any trivial type that is move/copy constructible/assignable, as per description in https://www.boost.org/doc/libs/1_80_0/libs/optional/doc/html/boost_optional/tutorial/gotchas/moved_from__optional_.html

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.