Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69694 - sandbox/assign_v2/boost/assign/v2/put/modulo/fun
From: erwann.rogard_at_[hidden]
Date: 2011-03-08 11:01:16


Author: e_r
Date: 2011-03-08 11:01:15 EST (Tue, 08 Mar 2011)
New Revision: 69694
URL: http://svn.boost.org/trac/boost/changeset/69694

Log:
upd assign_v2
Added:
   sandbox/assign_v2/boost/assign/v2/put/modulo/fun/keyword.hpp (contents, props changed)

Added: sandbox/assign_v2/boost/assign/v2/put/modulo/fun/keyword.hpp
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/boost/assign/v2/put/modulo/fun/keyword.hpp 2011-03-08 11:01:15 EST (Tue, 08 Mar 2011)
@@ -0,0 +1,46 @@
+//////////////////////////////////////////////////////////////////////////////
+// Boost.Assign v2 //
+// //
+// Copyright (C) 2003-2004 Thorsten Ottosen //
+// Copyright (C) 2010 Erwann Rogard //
+// Use, modification and distribution are subject to 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) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_ASSIGN_V2_PUT_MODULO_FUN_KEYWORD_ER_2010_HPP
+#define BOOST_ASSIGN_V2_PUT_MODULO_FUN_KEYWORD_ER_2010_HPP
+#include <boost/preprocessor/cat.hpp>
+#include <boost/assign/v2/put/modulo/fun/make.hpp>
+
+#define BOOST_ASSIGN_V2_MODULO_FUN_KEYWORD(NAME, FUN)\
+namespace boost{\
+namespace assign{\
+namespace v2{\
+namespace put_aux{\
+\
+ struct BOOST_PP_CAT(keyword_,NAME){\
+\
+ BOOST_PP_CAT(keyword_,NAME)(){}\
+\
+ template<typename T>\
+ struct result{\
+ typedef modulo_fun< FUN > type;\
+ };\
+\
+ template<typename T>\
+ typename result<T>::type\
+ operator()()const{ return ( v2::_fun = FUN() ); }\
+\
+ };\
+\
+}\
+namespace {\
+ put_aux::BOOST_PP_CAT(keyword_,NAME) const BOOST_PP_CAT(_,NAME)\
+ = put_aux::BOOST_PP_CAT(keyword_,NAME);\
+}\
+}\
+}\
+}\
+/**/
+
+#endif


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