diff options
Diffstat (limited to 'src/sfinae.h')
-rw-r--r-- | src/sfinae.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sfinae.h b/src/sfinae.h new file mode 100644 index 0000000..1f0cb74 --- /dev/null +++ b/src/sfinae.h @@ -0,0 +1,15 @@ +#ifndef TYPEASVALUE_SRC_SFINAE_H_ +#define TYPEASVALUE_SRC_SFINAE_H_ + +#include <type_traits> + +namespace tav { +namespace detail { + +template <bool Condition> +using enable_if = typename std::enable_if<Condition, std::size_t>::type; + +} +} + +#endif // TYPEASVALUE_SRC_SFINAE_H_ |