mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
23 lines
632 B
C++
23 lines
632 B
C++
#ifndef SPROUT_FIXED_CONTAINER_REFERENCE_HPP
|
|
#define SPROUT_FIXED_CONTAINER_REFERENCE_HPP
|
|
|
|
#include <type_traits>
|
|
#include <sprout/config.hpp>
|
|
#include <sprout/fixed_container/traits.hpp>
|
|
|
|
namespace sprout {
|
|
//
|
|
// fixed_reference
|
|
//
|
|
template<typename Container>
|
|
struct fixed_reference {
|
|
public:
|
|
typedef typename std::conditional<
|
|
std::is_const<Container>::value,
|
|
typename sprout::fixed_container_traits<Container>::const_reference,
|
|
typename sprout::fixed_container_traits<Container>::reference
|
|
>::type type;
|
|
};
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_FIXED_CONTAINER_REFERENCE_HPP
|