mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-03 14:54:30 +02:00
remove tabs/update copyright notice
[SVN r17833]
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
//-----------------------------------------------------------------------------
|
|
||||||
// boost/mpl/if.hpp header file
|
#ifndef BOOST_MPL_IF_HPP_INCLUDED
|
||||||
// See http://www.boost.org for updates, documentation, and revision history.
|
#define BOOST_MPL_IF_HPP_INCLUDED
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
//
|
// + file: boost/mpl/if.hpp
|
||||||
// Copyright (c) 2000-02 Boost.org
|
// + last modified: 10/mar/03
|
||||||
|
|
||||||
|
// Copyright (c) 2000-03 Boost.org
|
||||||
//
|
//
|
||||||
// Permission to use, copy, modify, distribute and sell this software
|
// Permission to use, copy, modify, distribute and sell this software
|
||||||
// and its documentation for any purpose is hereby granted without fee,
|
// and its documentation for any purpose is hereby granted without fee,
|
||||||
@@ -12,9 +14,8 @@
|
|||||||
// supporting documentation. No representations are made about the
|
// supporting documentation. No representations are made about the
|
||||||
// suitability of this software for any purpose. It is provided "as is"
|
// suitability of this software for any purpose. It is provided "as is"
|
||||||
// without express or implied warranty.
|
// without express or implied warranty.
|
||||||
|
//
|
||||||
#ifndef BOOST_MPL_IF_HPP_INCLUDED
|
// See http://www.boost.org/libs/mpl for documentation.
|
||||||
#define BOOST_MPL_IF_HPP_INCLUDED
|
|
||||||
|
|
||||||
#include "boost/mpl/aux_/value_wknd.hpp"
|
#include "boost/mpl/aux_/value_wknd.hpp"
|
||||||
#include "boost/mpl/aux_/ice_cast.hpp"
|
#include "boost/mpl/aux_/ice_cast.hpp"
|
||||||
@@ -85,7 +86,7 @@ struct if_c
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
template<bool> struct answer { typedef T1 type; };
|
template<bool> struct answer { typedef T1 type; };
|
||||||
template<> struct answer<false> { typedef T2 type; };
|
template<> struct answer<false> { typedef T2 type; };
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef typename answer< C_ >::type type;
|
typedef typename answer< C_ >::type type;
|
||||||
@@ -102,7 +103,7 @@ struct if_
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
template<bool> struct answer { typedef T1 type; };
|
template<bool> struct answer { typedef T1 type; };
|
||||||
template<> struct answer<false> { typedef T2 type; };
|
template<> struct answer<false> { typedef T2 type; };
|
||||||
|
|
||||||
// agurt, 17/sep/02: in some situations MSVC 7.0 doesn't
|
// agurt, 17/sep/02: in some situations MSVC 7.0 doesn't
|
||||||
// handle 'answer<C::value>' expression very well
|
// handle 'answer<C::value>' expression very well
|
||||||
|
@@ -1,9 +1,11 @@
|
|||||||
//-----------------------------------------------------------------------------
|
|
||||||
// boost mpl/remove_if.hpp header file
|
#ifndef BOOST_MPL_REMOVE_IF_HPP_INCLUDED
|
||||||
// See http://www.boost.org for updates, documentation, and revision history.
|
#define BOOST_MPL_REMOVE_IF_HPP_INCLUDED
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
//
|
// + file: boost/mpl/remove_if.hpp
|
||||||
// Copyright (c) 2000-02
|
// + last modified: 10/mar/03
|
||||||
|
|
||||||
|
// Copyright (c) 2000-03
|
||||||
// Aleksey Gurtovoy
|
// Aleksey Gurtovoy
|
||||||
//
|
//
|
||||||
// Permission to use, copy, modify, distribute and sell this software
|
// Permission to use, copy, modify, distribute and sell this software
|
||||||
@@ -13,9 +15,8 @@
|
|||||||
// supporting documentation. No representations are made about the
|
// supporting documentation. No representations are made about the
|
||||||
// suitability of this software for any purpose. It is provided "as is"
|
// suitability of this software for any purpose. It is provided "as is"
|
||||||
// without express or implied warranty.
|
// without express or implied warranty.
|
||||||
|
//
|
||||||
#ifndef BOOST_MPL_REMOVE_IF_HPP_INCLUDED
|
// See http://www.boost.org/libs/mpl for documentation.
|
||||||
#define BOOST_MPL_REMOVE_IF_HPP_INCLUDED
|
|
||||||
|
|
||||||
#include "boost/mpl/fold_backward.hpp"
|
#include "boost/mpl/fold_backward.hpp"
|
||||||
#include "boost/mpl/clear.hpp"
|
#include "boost/mpl/clear.hpp"
|
||||||
@@ -36,7 +37,7 @@ template< typename Pred > struct remove_if_helper
|
|||||||
template< typename Sequence, typename U > struct apply
|
template< typename Sequence, typename U > struct apply
|
||||||
{
|
{
|
||||||
typedef typename apply_if<
|
typedef typename apply_if<
|
||||||
typename apply1<Pred, U>::type
|
typename apply1<Pred,U>::type
|
||||||
, identity<Sequence>
|
, identity<Sequence>
|
||||||
, push_front<Sequence,U>
|
, push_front<Sequence,U>
|
||||||
>::type type;
|
>::type type;
|
||||||
|
Reference in New Issue
Block a user