dust3d/thirdparty/cgal/CGAL-5.1/include/CGAL/internal/info_check.h

39 lines
872 B
C++

// Copyright (c) 2010 GeometryFactory (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL: https://github.com/CGAL/cgal/blob/v5.1/STL_Extension/include/CGAL/internal/info_check.h $
// $Id: info_check.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : Sebastien Loriot
//
#ifndef CGAL_INTERNAL_INFO_CHECK_H
#define CGAL_INTERNAL_INFO_CHECK_H
#include <boost/mpl/has_xxx.hpp>
namespace CGAL {
namespace internal{
BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF(Has_typedef_Info,Info,false)
template <class T,bool has_info=Has_typedef_Info<T>::value>
struct Info_check{
struct type{};
};
template <class T>
struct Info_check<T,true>{
typedef typename T::Info type;
};
} } //namespace CGAL::internal
#endif //CGAL_INTERNAL_INFO_CHECK_H