1
0
forked from boostorg/core

Add empty_init constant to documentation

This commit is contained in:
Glen Fernandes
2019-12-15 12:46:55 -05:00
parent e59271fdc2
commit 253b07f630
2 changed files with 5 additions and 3 deletions

View File

@ -97,6 +97,8 @@ public:
T& get() noexcept;
};
inline constexpr empty_init_t empty_init{ };
} /* boost */
```

View File

@ -40,9 +40,6 @@ struct use_empty_value_base {
struct empty_init_t { };
BOOST_INLINE_VARIABLE BOOST_CONSTEXPR_OR_CONST
empty_init_t empty_init = empty_init_t();
namespace empty_ {
template<class T, unsigned N = 0,
@ -142,6 +139,9 @@ public:
using empty_::empty_value;
BOOST_INLINE_VARIABLE
BOOST_CONSTEXPR_OR_CONST empty_init_t empty_init = empty_init_t();
} /* boost */
#endif