2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2016-02-25 09:48:28 +00:00
|
|
|
Copyright (c) 2011-2016 Bolero MURAKAMI
|
2013-08-08 09:54:33 +00:00
|
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
=============================================================================*/
|
2012-03-31 07:24:13 +00:00
|
|
|
#ifndef SPROUT_CONTAINER_SUB_CONTAINER_TRAITS_HPP
|
|
|
|
#define SPROUT_CONTAINER_SUB_CONTAINER_TRAITS_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/utility/forward.hpp>
|
2014-07-12 03:59:16 +00:00
|
|
|
#include <sprout/container/traits_fwd.hpp>
|
2012-03-31 07:24:13 +00:00
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
|
|
|
// sub_container_traits
|
|
|
|
//
|
|
|
|
template<typename Container>
|
|
|
|
struct sub_container_traits {
|
|
|
|
public:
|
|
|
|
template<typename Cont>
|
|
|
|
struct internal {
|
|
|
|
public:
|
|
|
|
typedef Cont&& type;
|
|
|
|
};
|
|
|
|
public:
|
|
|
|
template<typename Cont>
|
2013-02-26 01:43:27 +00:00
|
|
|
static SPROUT_CONSTEXPR typename internal<Cont>::type
|
|
|
|
get_internal(Cont&& cont) {
|
2014-02-22 07:32:51 +00:00
|
|
|
return SPROUT_FORWARD(Cont, cont);
|
2012-03-31 07:24:13 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
template<typename Container>
|
|
|
|
struct sub_container_traits<Container const>
|
|
|
|
: public sprout::sub_container_traits<Container>
|
|
|
|
{};
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_CONTAINER_SUB_CONTAINER_TRAITS_HPP
|