2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2014-01-08 07:48:12 +00:00
|
|
|
Copyright (c) 2011-2014 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-05-31 13:28:58 +00:00
|
|
|
#ifndef SPROUT_WEED_ATTR_CNV_MEM_PTR_HPP
|
|
|
|
#define SPROUT_WEED_ATTR_CNV_MEM_PTR_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
2013-11-20 13:04:11 +00:00
|
|
|
#include <sprout/weed/attr_cnv/results/mem_ptr.hpp>
|
2012-05-31 13:28:58 +00:00
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
namespace weed {
|
|
|
|
namespace attr_cnv {
|
|
|
|
//
|
|
|
|
// mem_ptr
|
|
|
|
//
|
|
|
|
template<typename T, typename U>
|
2013-11-20 13:04:11 +00:00
|
|
|
inline SPROUT_CONSTEXPR typename sprout::weed::attr_cnv::results::mem_ptr<T, U>::type
|
2012-05-31 13:28:58 +00:00
|
|
|
mem_ptr(T const& t, U const& u) {
|
|
|
|
return u(t);
|
|
|
|
}
|
|
|
|
} // namespace attr_cnv
|
|
|
|
} // namespace weed
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_WEED_ATTR_CNV_MEM_PTR_HPP
|