change is_(map|container) and remove needless trait

This commit is contained in:
ToruNiina
2018-05-05 11:36:47 +09:00
parent 4287160254
commit 117549bf70
2 changed files with 29 additions and 37 deletions

View File

@@ -58,15 +58,6 @@ struct has_resize_method : decltype(has_resize_method_impl::check<T>(nullptr)){}
#undef decltype(...)
#endif
template<typename T>
struct is_container : std::integral_constant<bool,
has_iterator<T>::value && has_value_type<T>::value>{};
template<typename T>
struct is_map : std::integral_constant<bool,
has_iterator<T>::value && has_key_type<T>::value &&
has_mapped_type<T>::value>{};
}// detail
}//toml
#endif // TOML_TRAITS