Skip to content

optimization for trivial T's #105

Description

@akrzemi1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions