1[/ 2 Boost.Optional 3 4 Copyright (c) 2003-2007 Fernando Luis Cacciola Carballal 5 Copyright (c) 2015 Andrzej Krzemienski 6 7 Distributed under the Boost Software License, Version 1.0. 8 (See accompanying file LICENSE_1_0.txt or copy at 9 http://www.boost.org/LICENSE_1_0.txt) 10] 11 12[section Header <boost/optional/bad_optional_access.hpp>] 13 14[section Synopsis] 15``` 16namespace boost { 17 18class bad_optional_access : public std::logic_error 19{ 20public: 21 bad_optional_access(); ``[link reference_bad_optional_access_constructor __GO_TO__]`` 22}; 23 24} // namespace boost 25``` 26[endsect] 27 28[section Detailed semantics] 29 30__SPACE__ 31 32[#reference_bad_optional_access_constructor] 33 34`bad_optional_access();` 35 36* [*Effect:] Constructs an object of class `bad_optional_access`. 37* [*Postconditions:] `what()` returns an implementation-defined NTBS. 38 39[endsect] 40[endsect] 41