mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
23 lines
625 B
C++
23 lines
625 B
C++
#ifndef SPROUT_FIXED_CONTAINER_ITERATOR_HPP
|
|
#define SPROUT_FIXED_CONTAINER_ITERATOR_HPP
|
|
|
|
#include <type_traits>
|
|
#include <sprout/config.hpp>
|
|
#include <sprout/fixed_container/traits.hpp>
|
|
|
|
namespace sprout {
|
|
//
|
|
// fixed_iterator
|
|
//
|
|
template<typename Container>
|
|
struct fixed_iterator {
|
|
public:
|
|
typedef typename std::conditional<
|
|
std::is_const<Container>::value,
|
|
typename sprout::fixed_container_traits<Container>::const_iterator,
|
|
typename sprout::fixed_container_traits<Container>::iterator
|
|
>::type type;
|
|
};
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_FIXED_CONTAINER_ITERATOR_HPP
|