Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/boost/parameter/aux_/result_of0.hpp @ 49

Last change on this file since 49 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 919 bytes
Line 
1// Copyright David Abrahams 2005. Distributed under the Boost
2// Software License, Version 1.0. (See accompanying
3// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4#ifndef BOOST_PARAMETER_AUX_RESULT_OF0_DWA2005511_HPP
5# define BOOST_PARAMETER_AUX_RESULT_OF0_DWA2005511_HPP
6
7# include <boost/utility/result_of.hpp>
8
9// A metafunction returning the result of invoking a nullary function
10// object of the given type.
11
12#ifndef BOOST_NO_RESULT_OF
13
14# include <boost/utility/result_of.hpp>
15namespace boost { namespace parameter { namespace aux { 
16template <class F>
17struct result_of0 : result_of<F()>
18{};
19
20}}} // namespace boost::parameter::aux_
21
22#else
23
24namespace boost { namespace parameter { namespace aux { 
25template <class F>
26struct result_of0
27{
28    typedef typename F::result_type type;
29};
30
31}}} // namespace boost::parameter::aux_
32
33#endif
34
35
36#endif // BOOST_PARAMETER_AUX_RESULT_OF0_DWA2005511_HPP
Note: See TracBrowser for help on using the repository browser.