2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2016-02-25 09:48:28 +00:00
|
|
|
Copyright (c) 2011-2016 Bolero MURAKAMI
|
2013-08-08 09:54:33 +00:00
|
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
|
|
|
|
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)
|
|
|
|
=============================================================================*/
|
2012-09-29 08:10:46 +00:00
|
|
|
#ifndef SPROUT_ADL_NOT_FOUND_HPP
|
|
|
|
#define SPROUT_ADL_NOT_FOUND_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
2013-11-22 12:11:08 +00:00
|
|
|
#include <sprout/type_traits/integral_constant.hpp>
|
2015-04-04 16:32:49 +00:00
|
|
|
#include <sprout/type_traits/is_same.hpp>
|
2012-09-29 08:10:46 +00:00
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
2012-09-29 14:39:00 +00:00
|
|
|
// not_found_via_adl
|
2012-09-29 08:10:46 +00:00
|
|
|
//
|
2012-09-29 14:39:00 +00:00
|
|
|
struct not_found_via_adl {};
|
|
|
|
|
|
|
|
//
|
|
|
|
// is_not_found_via_adl
|
|
|
|
//
|
|
|
|
template<typename T>
|
|
|
|
struct is_not_found_via_adl
|
2013-11-22 12:11:08 +00:00
|
|
|
: public sprout::is_same<T, sprout::not_found_via_adl>
|
2012-09-29 14:39:00 +00:00
|
|
|
{};
|
2012-10-04 14:25:28 +00:00
|
|
|
template<typename T>
|
|
|
|
struct is_not_found_via_adl<T const>
|
|
|
|
: public sprout::is_not_found_via_adl<T>
|
|
|
|
{};
|
|
|
|
template<typename T>
|
|
|
|
struct is_not_found_via_adl<T volatile>
|
|
|
|
: public sprout::is_not_found_via_adl<T>
|
|
|
|
{};
|
|
|
|
template<typename T>
|
|
|
|
struct is_not_found_via_adl<T const volatile>
|
|
|
|
: public sprout::is_not_found_via_adl<T>
|
|
|
|
{};
|
2012-09-29 14:39:00 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// is_found_via_adl
|
|
|
|
//
|
|
|
|
template<typename T>
|
|
|
|
struct is_found_via_adl
|
2014-12-10 10:54:12 +00:00
|
|
|
: public sprout::bool_constant<!sprout::is_not_found_via_adl<T>::value>
|
2012-09-29 14:39:00 +00:00
|
|
|
{};
|
2012-09-29 08:10:46 +00:00
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_ADL_NOT_FOUND_HPP
|