/cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.4.30/CxxUtils/CxxUtils/enable_if.h File Reference

C++98 definition of enable_if. More...

Go to the source code of this file.

Classes

struct  CxxUtils::enable_if< bool, _Tp >
 Define a member typedef type only if a boolean constant is true. More...
struct  CxxUtils::enable_if< true, _Tp >

Namespaces

namespace  CxxUtils
 

Copy the elements of a sequence for which a predicate is true.



Detailed Description

C++98 definition of enable_if.

Author:
scott snyder <snyder@bnl.gov>
Date:
Jul, 2014 This header defines CxxUtils::enable_if that can be used in both c++98 and c++11; the standard library version is used if it's available.

For the c++98 case, we can't just import enable_if from boost, since std::enable_if actually corresponds to boost::enable_if_c. The definition of enable_if is simple enough that we just copy it here.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1