2012-09-29 08:10:46 +00:00
|
|
|
#ifndef SPROUT_ADL_NOT_FOUND_HPP
|
|
|
|
#define SPROUT_ADL_NOT_FOUND_HPP
|
|
|
|
|
2012-09-29 14:39:00 +00:00
|
|
|
#include <type_traits>
|
2012-09-29 08:10:46 +00:00
|
|
|
#include <sprout/config.hpp>
|
|
|
|
|
|
|
|
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
|
|
|
|
: public std::is_same<T, sprout::not_found_via_adl>
|
|
|
|
{};
|
|
|
|
|
|
|
|
//
|
|
|
|
// is_found_via_adl
|
|
|
|
//
|
|
|
|
template<typename T>
|
|
|
|
struct is_found_via_adl
|
|
|
|
: public std::integral_constant<bool, sprout::is_not_found_via_adl<T>::value>
|
|
|
|
{};
|
2012-09-29 08:10:46 +00:00
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_ADL_NOT_FOUND_HPP
|