Mirror reflection library 0.5.13

mirror/meta_prog/and.hpp

Go to the documentation of this file.
00001 
00010 #ifndef MIRROR_META_PROG_AND_1011291729_HPP
00011 #define MIRROR_META_PROG_AND_1011291729_HPP
00012 
00013 
00014 #include <mirror/meta_prog/forward_decl.hpp>
00015 
00016 MIRROR_NAMESPACE_BEGIN
00017 namespace mp {
00018 
00019 // Single-parameter and_ meta function specialization
00020 template <class Bool>
00021 struct and_<Bool>
00022  : public ::std::integral_constant<bool, Bool::value>
00023 { };
00024 
00025 // Multi-parameter and_ meta function specialization
00026 template <class Bool, class ... Bools>
00027 struct and_<Bool, Bools...>
00028  : public ::std::integral_constant<
00029     bool,
00030     Bool::value && and_<Bools...>::value
00031 >{ };
00032 
00033 #ifdef MIRROR_DOCUMENTATION_ONLY
00034 
00035 
00040 template <typename ... BooleanConstants>
00041 struct and_ : public BooleanConstant
00042 { };
00043 #endif
00044 
00045 
00046 } // namespace mp
00047 MIRROR_NAMESPACE_END
00048 
00049 #endif //include guard
00050 

Copyright © 2006-2011 Matus Chochlik, University of Zilina, Zilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Fri Dec 16 2011 by Doxygen (version 1.7.3).
Important note: Although the 'boostified' version of Mirror uses the Boost C++ libraries Coding Guidelines and is implemented inside of the boost namespace, it IS NOT an officially reviewed and accepted Boost library. Mirror is being developed with the intention to be submitted for review for inclusion to the Boost C++ libraries.