Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65804 - sandbox/itl/boost/itl/detail
From: afojgo_at_[hidden]
Date: 2010-10-07 09:21:51


Author: jofaber
Date: 2010-10-07 09:21:49 EDT (Thu, 07 Oct 2010)
New Revision: 65804
URL: http://svn.boost.org/trac/boost/changeset/65804

Log:
Added std_set.hpp. std::set can be used as model of the element_set concept.
Added:
   sandbox/itl/boost/itl/detail/std_set.hpp (contents, props changed)

Added: sandbox/itl/boost/itl/detail/std_set.hpp
==============================================================================
--- (empty file)
+++ sandbox/itl/boost/itl/detail/std_set.hpp 2010-10-07 09:21:49 EDT (Thu, 07 Oct 2010)
@@ -0,0 +1,38 @@
+/*-----------------------------------------------------------------------------+
+Copyright (c) 2007-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_ITL_DETAIL_STD_SET_HPP_JOFA_101007
+#define BOOST_ITL_DETAIL_STD_SET_HPP_JOFA_101007
+
+#include <set>
+#include <boost/config.hpp>
+#include <boost/itl/type_traits/type_to_string.hpp>
+#include <boost/itl/type_traits/is_set.hpp>
+
+
+namespace boost{namespace itl
+{
+
+template <class Type>
+struct is_set<std::set<Type> >
+{
+ typedef is_set<std::set<Type> > type;
+ BOOST_STATIC_CONSTANT(bool, value = true);
+};
+
+
+template <class Type>
+struct type_to_string<std::set<Type> >
+{
+ static std::string apply()
+ { return "set<"+ type_to_string<Type>::apply() +">"; }
+};
+
+}} // namespace itl boost
+
+#endif // BOOST_ITL_DETAIL_STD_SET_HPP_JOFA_101007
+


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk