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:
parent
7e709630c6
commit
61dd3351fc
26 changed files with 205 additions and 48 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue