2011-09-01 02:48:32 +00:00
|
|
|
#ifndef SPROUT_FIXED_CONTAINER_FIXED_SIZE_HPP
|
|
|
|
#define SPROUT_FIXED_CONTAINER_FIXED_SIZE_HPP
|
|
|
|
|
|
|
|
#include <type_traits>
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/fixed_container/traits.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
|
|
|
// fixed_size
|
|
|
|
//
|
|
|
|
template<typename Container>
|
|
|
|
struct fixed_size {
|
|
|
|
public:
|
2011-09-02 05:12:44 +00:00
|
|
|
static SPROUT_CONSTEXPR typename sprout::fixed_container_traits<Container>::size_type value
|
2011-09-01 02:48:32 +00:00
|
|
|
= sprout::fixed_container_traits<Container>::fixed_size
|
|
|
|
;
|
|
|
|
typedef std::integral_constant<typename sprout::fixed_container_traits<Container>::size_type, value> type;
|
|
|
|
};
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_FIXED_CONTAINER_FIXED_SIZE_HPP
|