]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*-----------------------------------------------------------------------------+ |
2 | Copyright (c) 2010-2010: Joachim Faulhaber | |
3 | +------------------------------------------------------------------------------+ | |
4 | Distributed under the Boost Software License, Version 1.0. | |
5 | (See accompanying file LICENCE.txt or copy at | |
6 | http://www.boost.org/LICENSE_1_0.txt) | |
7 | +-----------------------------------------------------------------------------*/ | |
8 | #ifndef BOOST_ICL_CONCEPT_ELEMENT_SET_VALUE_HPP_JOFA_100924 | |
9 | #define BOOST_ICL_CONCEPT_ELEMENT_SET_VALUE_HPP_JOFA_100924 | |
10 | ||
11 | #include <boost/icl/type_traits/is_element_container.hpp> | |
12 | ||
13 | namespace boost{ namespace icl | |
14 | { | |
15 | ||
16 | //============================================================================== | |
17 | //= AlgoUnifiers<Set> | |
18 | //============================================================================== | |
19 | template<class Type, class Iterator> | |
20 | inline typename enable_if<is_element_set<Type>, const typename Type::key_type>::type& | |
21 | co_value(Iterator it_) | |
22 | { | |
23 | return *it_; | |
24 | } | |
25 | ||
26 | ||
27 | }} // namespace boost icl | |
28 | ||
29 | #endif | |
30 | ||
31 |