21_ref_none.qbk 834 B

12345678910111213141516171819202122232425262728293031
  1. [/
  2. Boost.Optional
  3. Copyright (c) 2003-2007 Fernando Luis Cacciola Carballal
  4. Copyright (c) 2015 Andrzej Krzemienski
  5. Distributed under the Boost Software License, Version 1.0.
  6. (See accompanying file LICENSE_1_0.txt or copy at
  7. http://www.boost.org/LICENSE_1_0.txt)
  8. ]
  9. [section Header <boost/none.hpp>]
  10. [section Synopsis]
  11. ```
  12. namespace boost {
  13. class none_t {/* see below */};
  14. const none_t none (/* see below */);
  15. } // namespace boost
  16. ```
  17. Class `none_t` is meant to serve as a tag for selecting appropriate overloads of from `optional`'s interface. It is an empty, trivially copyable class with disabled default constructor.
  18. Constant `none` is used to indicate an optional object that does not contain a value in initialization, assignment and relational operations of `optional`.
  19. [endsect]
  20. [endsect]