Line | |
---|
1 | // Boost string_algo library yes_no_type.hpp header file ---------------------------//
|
---|
2 |
|
---|
3 | // Copyright Pavol Droba 2002-2003. Use, modification and
|
---|
4 | // distribution is subject to the Boost Software License, Version
|
---|
5 | // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
---|
6 | // http://www.boost.org/LICENSE_1_0.txt)
|
---|
7 |
|
---|
8 | // See http://www.boost.org for updates, documentation, and revision history.
|
---|
9 |
|
---|
10 | #ifndef BOOST_STRING_YES_NO_TYPE_DETAIL_HPP
|
---|
11 | #define BOOST_STRING_YES_NO_TYPE_DETAIL_HPP
|
---|
12 |
|
---|
13 | namespace boost {
|
---|
14 | namespace algorithm {
|
---|
15 |
|
---|
16 | // taken from boost mailing-list
|
---|
17 | // when yes_no_type will become officially
|
---|
18 | // a part of boost distribution, this header
|
---|
19 | // will be deprecated
|
---|
20 | template<int I> struct size_descriptor
|
---|
21 | {
|
---|
22 | typedef char (& type)[I];
|
---|
23 | };
|
---|
24 |
|
---|
25 | typedef size_descriptor<1>::type yes_type;
|
---|
26 | typedef size_descriptor<2>::type no_type;
|
---|
27 |
|
---|
28 | } // namespace algorithm
|
---|
29 | } // namespace boost
|
---|
30 |
|
---|
31 |
|
---|
32 | #endif // BOOST_STRING_YES_NO_TYPE_DETAIL_HPP
|
---|
Note: See
TracBrowser
for help on using the repository browser.