]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/algorithm/include/boost/algorithm/string/yes_no_type.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / algorithm / include / boost / algorithm / string / yes_no_type.hpp
1 // Boost string_algo library yes_no_type.hpp header file ---------------------------//
2
3 // Copyright Pavol Droba 2002-2003.
4 //
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 // See http://www.boost.org/ for updates, documentation, and revision history.
10
11 #ifndef BOOST_STRING_YES_NO_TYPE_DETAIL_HPP
12 #define BOOST_STRING_YES_NO_TYPE_DETAIL_HPP
13
14 namespace boost {
15 namespace algorithm {
16
17 // taken from boost mailing-list
18 // when yes_no_type will become officially
19 // a part of boost distribution, this header
20 // will be deprecated
21 template<int I> struct size_descriptor
22 {
23 typedef char (& type)[I];
24 };
25
26 typedef size_descriptor<1>::type yes_type;
27 typedef size_descriptor<2>::type no_type;
28
29 } // namespace algorithm
30 } // namespace boost
31
32
33 #endif // BOOST_STRING_YES_NO_TYPE_DETAIL_HPP