mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
all type_traits support C++14 requirements
This commit is contained in:
parent
bf0c7021cf
commit
403e83eaf0
95 changed files with 319 additions and 268 deletions
|
@ -9,18 +9,18 @@
|
|||
#define SPROUT_CONTAINER_DETAIL_ARRAY_LIKE_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
template<typename Container>
|
||||
struct is_array_like
|
||||
: public std::false_type
|
||||
: public sprout::false_type
|
||||
{};
|
||||
template<template<typename, std::size_t> class Array, typename T, std::size_t N>
|
||||
struct is_array_like<Array<T, N> >
|
||||
: public std::true_type
|
||||
: public sprout::true_type
|
||||
{};
|
||||
template<typename Container>
|
||||
struct is_array_like<Container const>
|
||||
|
@ -39,7 +39,7 @@ namespace sprout {
|
|||
struct array_like_static_size {};
|
||||
template<template<typename, std::size_t> class Array, typename T, std::size_t N>
|
||||
struct array_like_static_size<Array<T, N> >
|
||||
: public std::integral_constant<std::size_t, N>
|
||||
: public sprout::integral_constant<std::size_t, N>
|
||||
{};
|
||||
template<typename Container>
|
||||
struct array_like_static_size<Container const>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue