1 /*-----------------------------------------------------------------------------+
2 Copyright (c) 2008-2009: 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_TYPE_TRAITS_IDENTITY_ELEMENT_HPP_JOFA_080912
9 #define BOOST_ICL_TYPE_TRAITS_IDENTITY_ELEMENT_HPP_JOFA_080912
11 #include <boost/icl/type_traits/type_to_string.hpp>
13 namespace boost{ namespace icl
15 template <class Type> struct identity_element
18 Type operator()()const { return value(); }
22 inline Type identity_element<Type>::value()
29 inline std::string unary_template_to_string<identity_element>::apply() { return "0"; }
31 }} // namespace boost icl