1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add type_traits for variable templates version

This commit is contained in:
bolero-MURAKAMI 2014-03-15 18:11:11 +09:00
parent 7e709630c6
commit 61dd3351fc
26 changed files with 205 additions and 48 deletions

View file

@ -32,6 +32,11 @@ namespace sprout {
struct is_pit<sprout::pit<Container> >
: public sprout::true_type
{};
#if SPROUT_USE_VARIABLE_TEMPLATES
template<typename T>
SPROUT_STATIC_CONSTEXPR bool is_pit_v = sprout::is_pit<T>::value;
#endif // #if SPROUT_USE_VARIABLE_TEMPLATES
} // namespace sprout
#endif // #ifndef SPROUT_PIT_TYPE_TRAITS_HPP