]> git.lyx.org Git - lyx.git/blob - boost/boost/none.hpp
update to boost 1.34
[lyx.git] / boost / boost / none.hpp
1 // Copyright (C) 2003, Fernando Luis Cacciola Carballal.\r
2 // Copyright (C) 2007, Anthony Williams\r
3 // Copyright (C) 2007, Steven Watanabe, Richard Smith\r
4 //\r
5 // Distributed under the Boost Software License, Version 1.0.\r
6 // (See accompanying file LICENSE_1_0.txt or copy at\r
7 // http://www.boost.org/LICENSE_1_0.txt)\r
8 //\r
9 // See http://www.boost.org/lib/optional/ for documentation.\r
10 //\r
11 // You are welcome to contact the author at:\r
12 // fernando.cacciola@gmail.com\r
13 //\r
14 #ifndef BOOST_NONE_17SEP2003_HPP\r
15 #define BOOST_NONE_17SEP2003_HPP\r
16 \r
17 namespace boost\r
18 {\r
19   namespace detail\r
20   {\r
21     class none_helper;\r
22   }\r
23 \r
24   inline void none(detail::none_helper);\r
25 \r
26   namespace detail\r
27   {\r
28     class none_helper\r
29     {\r
30     private:\r
31       \r
32       none_helper( none_helper const& ) {}\r
33       \r
34       friend void boost::none(none_helper);\r
35     };\r
36   }\r
37 \r
38   typedef void (*none_t)(detail::none_helper);\r
39 \r
40   inline void none(detail::none_helper) {}\r
41 }\r
42 \r
43 #endif\r