forked from boostorg/core
Add empty_init constant to documentation
This commit is contained in:
@@ -97,6 +97,8 @@ public:
|
|||||||
T& get() noexcept;
|
T& get() noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline constexpr empty_init_t empty_init{ };
|
||||||
|
|
||||||
} /* boost */
|
} /* boost */
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -40,9 +40,6 @@ struct use_empty_value_base {
|
|||||||
|
|
||||||
struct empty_init_t { };
|
struct empty_init_t { };
|
||||||
|
|
||||||
BOOST_INLINE_VARIABLE BOOST_CONSTEXPR_OR_CONST
|
|
||||||
empty_init_t empty_init = empty_init_t();
|
|
||||||
|
|
||||||
namespace empty_ {
|
namespace empty_ {
|
||||||
|
|
||||||
template<class T, unsigned N = 0,
|
template<class T, unsigned N = 0,
|
||||||
@@ -142,6 +139,9 @@ public:
|
|||||||
|
|
||||||
using empty_::empty_value;
|
using empty_::empty_value;
|
||||||
|
|
||||||
|
BOOST_INLINE_VARIABLE
|
||||||
|
BOOST_CONSTEXPR_OR_CONST empty_init_t empty_init = empty_init_t();
|
||||||
|
|
||||||
} /* boost */
|
} /* boost */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user