22_ref_bad_optional_access.qbk 857 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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/optional/bad_optional_access.hpp>]
  10. [section Synopsis]
  11. ```
  12. namespace boost {
  13. class bad_optional_access : public std::logic_error
  14. {
  15. public:
  16. bad_optional_access(); ``[link reference_bad_optional_access_constructor __GO_TO__]``
  17. };
  18. } // namespace boost
  19. ```
  20. [endsect]
  21. [section Detailed semantics]
  22. __SPACE__
  23. [#reference_bad_optional_access_constructor]
  24. `bad_optional_access();`
  25. * [*Effect:] Constructs an object of class `bad_optional_access`.
  26. * [*Postconditions:] `what()` returns an implementation-defined NTBS.
  27. [endsect]
  28. [endsect]