Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65953 - sandbox/itl/boost/itl/type_traits
From: afojgo_at_[hidden]
Date: 2010-10-14 09:20:08


Author: jofaber
Date: 2010-10-14 09:20:05 EDT (Thu, 14 Oct 2010)
New Revision: 65953
URL: http://svn.boost.org/trac/boost/changeset/65953

Log:
Removing file given.hpp
Removed:
   sandbox/itl/boost/itl/type_traits/given.hpp

Deleted: sandbox/itl/boost/itl/type_traits/given.hpp
==============================================================================
--- sandbox/itl/boost/itl/type_traits/given.hpp 2010-10-14 09:20:05 EDT (Thu, 14 Oct 2010)
+++ (empty file)
@@ -1,44 +0,0 @@
-/*-----------------------------------------------------------------------------+
-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_ITL_TYPE_TRAITS_GIVEN_HPP_JOFA_100929
-#define BOOST_ITL_TYPE_TRAITS_GIVEN_HPP_JOFA_100929
-
-#include <boost/itl/type_traits/unit_element.hpp>
-
-namespace boost{ namespace itl
-{
- template<bool Fact, class Type = bool> struct given_;
-
- template<class Fact, class Type = bool> struct given
- {
- static Type then(const Type& success, const Type& fail = unit_element<Type>::value())
- {
- return given_<Fact::value, Type>::then(success, fail);
- }
- };
-
- //-----------------------------------------------------------------------------
- template<class Type>
- struct given_<false, Type>
- {
- static Type then(const Type& success, const Type& fail = unit_element<Type>::value())
- { return fail; }
- };
-
- template<class Type>
- struct given_<true, Type>
- {
- static Type then(const Type& success, const Type& fail = unit_element<Type>::value())
- { return success; }
- };
-
-}} // namespace boost itl
-
-#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