mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
sprout/tuple/* いろいろ追加
This commit is contained in:
parent
e11c2eb867
commit
c2b7bcd46b
13 changed files with 585 additions and 9 deletions
|
@ -53,6 +53,15 @@ namespace sprout {
|
|||
= std::tuple_size<typename std::remove_const<internal_type>::type>::value
|
||||
;
|
||||
};
|
||||
template<typename Container>
|
||||
struct fixed_container_traits<Container const>
|
||||
: public sprout::fixed_container_traits<Container>
|
||||
{
|
||||
public:
|
||||
typedef typename sprout::fixed_container_traits<Container>::const_iterator iterator;
|
||||
typedef typename sprout::fixed_container_traits<Container>::const_reference reference;
|
||||
typedef typename sprout::fixed_container_traits<Container>::const_pointer pointer;
|
||||
};
|
||||
template<typename T, std::size_t N>
|
||||
struct fixed_container_traits<T[N]>
|
||||
: public sprout::detail::fixed_container_traits_base<T[N]>
|
||||
|
@ -64,15 +73,6 @@ namespace sprout {
|
|||
public:
|
||||
SPROUT_STATIC_CONSTEXPR typename sprout::detail::fixed_container_traits_base<T[N]>::size_type fixed_size = N;
|
||||
};
|
||||
template<typename Container>
|
||||
struct fixed_container_traits<Container const>
|
||||
: public sprout::fixed_container_traits<Container>
|
||||
{
|
||||
public:
|
||||
typedef typename sprout::fixed_container_traits<Container>::const_iterator iterator;
|
||||
typedef typename sprout::fixed_container_traits<Container>::const_reference reference;
|
||||
typedef typename sprout::fixed_container_traits<Container>::const_pointer pointer;
|
||||
};
|
||||
template<typename T, std::size_t N>
|
||||
struct fixed_container_traits<T const[N]>
|
||||
: public sprout::fixed_container_traits<T[N]>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue