Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
ecl
mpl
bool.hpp
Go to the documentation of this file.
1
8
/*****************************************************************************
9
** Ifdefs
10
*****************************************************************************/
11
12
#ifndef ECL_MPL_BOOL_HPP_
13
#define ECL_MPL_BOOL_HPP_
14
15
/*****************************************************************************
16
** Namespaces
17
*****************************************************************************/
18
19
namespace
ecl
{
20
21
/*****************************************************************************
22
** Using
23
*****************************************************************************/
24
31
template
<
bool
x >
32
class
Bool {
33
public
:
34
static
bool
const
value
= x;
35
typedef
Bool<x>
type
;
36
typedef
bool
value_type
;
37
operator
bool()
const
{
return
x; }
38
virtual
~Bool
(){};
39
};
40
41
typedef
Bool<false>
False
;
42
typedef
Bool<true>
True
;
44
}
// namespace ecl
45
46
#endif
/* ECL_MPL_BOOL_HPP_ */
ecl
ecl::Bool::value_type
bool value_type
ecl::Bool::~Bool
virtual ~Bool()
ecl::True
Bool< true > True
ecl::Bool::value
static bool const value
The value for this integral constant wrapper.
Definition:
bool.hpp:34
ecl::Bool
Integral constant wrapper for boolean values.
Definition:
bool.hpp:32
ecl::False
Bool< false > False
ecl::Bool::type
Bool< x > type
xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:37