/usr/include/boost/icl/concept
Edit: /usr/include/boost/icl/concept/set_value.hpp (1329B)
/*-----------------------------------------------------------------------------+
Copyright (c) 2010-2010: Joachim Faulhaber
+------------------------------------------------------------------------------+
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENCE.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
+-----------------------------------------------------------------------------*/
#ifndef BOOST_ICL_CONCEPT_SET_VALUE_HPP_JOFA_100924
#define BOOST_ICL_CONCEPT_SET_VALUE_HPP_JOFA_100924
#include
#include
namespace boost{ namespace icl
{
//==============================================================================
//= AlgoUnifiers
//==============================================================================
template
inline typename enable_if, const typename Type::key_type>::type&
key_value(Iterator it_)
{
return *it_;
}
template
inline typename enable_if, typename Type::value_type>::type
make_value(const typename Type::key_type& key_val,
const typename codomain_type_of::type& )
{
return typename Type::value_type(key_val);
}
}} // namespace boost icl
#endif