BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsl::nullopt_t Struct Reference

#include <bslstl_optional.h>

Detailed Description

This trivial tag type is used to create optional objects in a disengaged state. It uses a constructor template to avoid being constructible from any braced list. See implementation notes for more information.

See bslstl_optional

Public Member Functions

template<class t_TYPE >
BSLS_KEYWORD_CONSTEXPR nullopt_t (t_TYPE, typename enable_if< is_same< t_TYPE, BloombergLP::bslstl::Optional_NulloptConstructToken >::value, int >::type=0) BSLS_KEYWORD_NOEXCEPT
 

Constructor & Destructor Documentation

◆ nullopt_t()

template<class t_TYPE >
BSLS_KEYWORD_CONSTEXPR bsl::nullopt_t::nullopt_t ( t_TYPE  ,
typename enable_if< is_same< t_TYPE, BloombergLP::bslstl::Optional_NulloptConstructToken >::value, int >::type  = 0 
)
inlineexplicit

Create a nullopt_t object.

Note
Note that the argument is not used.

The documentation for this struct was generated from the following file: