Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62573 - sandbox/SOC/2010/bit_masks/boost/integer/details
From: bbartmanboost_at_[hidden]
Date: 2010-06-08 10:17:32


Author: bbartman
Date: 2010-06-08 10:17:32 EDT (Tue, 08 Jun 2010)
New Revision: 62573
URL: http://svn.boost.org/trac/boost/changeset/62573

Log:
adding a seperate header file for the tagged class for naming elements within a tuple.
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/details/tagged.hpp | 23 +++++++++++++++++++++++
   1 files changed, 23 insertions(+), 0 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/tagged.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/tagged.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/tagged.hpp 2010-06-08 10:17:32 EDT (Tue, 08 Jun 2010)
@@ -0,0 +1,23 @@
+// Copyright 2010 Brian Bartman.
+// Distributed under 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_BIT_MASKS_TAGGED_HPP
+#define BOOST_BIT_MASKS_TAGGED_HPP
+
+
+namespace boost {
+
+/** This is used for naming/tagging arguments within bit structures. */
+template <typename T, typename NameType>
+struct tagged {
+ typedef NameType name;
+ typedef T value;
+ typedef tagged<NameType, T> type;
+};
+
+} // end boost
+
+#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