Mirror reflection library 0.5.13

mirror/type_traits/is_default_constructible.hpp

Go to the documentation of this file.
00001 
00011 #ifndef MIRROR_TYPE_TRAITS_IS_DEFAULT_CONSTRUCTIBLE_1011291729_HPP
00012 #define MIRROR_TYPE_TRAITS_IS_DEFAULT_CONSTRUCTIBLE_1011291729_HPP
00013 
00014 #include <mirror/mirror_fwd.hpp>
00015 #include <type_traits>
00016 
00017 MIRROR_NAMESPACE_BEGIN
00018 
00020 
00026 template <typename T>
00027 struct is_default_constructible
00028  : std::integral_constant<
00029     bool,
00030     ::std::has_trivial_default_constructor<T>::value ||
00031     ::std::has_nothrow_default_constructor<T>::value ||
00032     mirror::_class::_<T>::has_default_ctr::value
00033 >
00034 { };
00035 
00036 MIRROR_NAMESPACE_END
00037 
00038 #endif //include guard
00039 

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.