mirror of
https://github.com/boostorg/parameter.git
synced 2026-01-19 04:22:13 +00:00
Trim trailing spaces.
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
#include <boost/parameter/aux_/tagged_argument.hpp>
|
#include <boost/parameter/aux_/tagged_argument.hpp>
|
||||||
#include <boost/parameter/config.hpp>
|
#include <boost/parameter/config.hpp>
|
||||||
|
|
||||||
namespace boost { namespace parameter { namespace aux {
|
namespace boost { namespace parameter { namespace aux {
|
||||||
|
|
||||||
template <
|
template <
|
||||||
typename Keyword
|
typename Keyword
|
||||||
@@ -34,7 +34,7 @@ namespace boost { namespace parameter { namespace aux {
|
|||||||
|
|
||||||
#include <boost/mpl/bool.hpp>
|
#include <boost/mpl/bool.hpp>
|
||||||
|
|
||||||
namespace boost { namespace parameter { namespace aux {
|
namespace boost { namespace parameter { namespace aux {
|
||||||
|
|
||||||
template <typename Keyword, typename ActualArg>
|
template <typename Keyword, typename ActualArg>
|
||||||
struct tag_ref<Keyword,ActualArg,::boost::mpl::false_>
|
struct tag_ref<Keyword,ActualArg,::boost::mpl::false_>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace boost { namespace parameter { namespace aux {
|
|||||||
));
|
));
|
||||||
#endif
|
#endif
|
||||||
typedef int type;
|
typedef int type;
|
||||||
};
|
};
|
||||||
}}} // namespace boost::parameter::aux
|
}}} // namespace boost::parameter::aux
|
||||||
|
|
||||||
#endif // include guard
|
#endif // include guard
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
::boost::parameter::aux::item< \
|
::boost::parameter::aux::item< \
|
||||||
BOOST_PP_CAT(PS, n), BOOST_PP_CAT(A, n)
|
BOOST_PP_CAT(PS, n), BOOST_PP_CAT(A, n)
|
||||||
|
|
||||||
#define BOOST_PARAMETER_close_list(z, n, text) >
|
#define BOOST_PARAMETER_close_list(z, n, text) >
|
||||||
|
|
||||||
#define BOOST_PARAMETER_arg_list(n) \
|
#define BOOST_PARAMETER_arg_list(n) \
|
||||||
::boost::parameter::aux::make_arg_list< \
|
::boost::parameter::aux::make_arg_list< \
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <boost/mp11/utility.hpp>
|
#include <boost/mp11/utility.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
namespace boost { namespace parameter { namespace aux {
|
namespace boost { namespace parameter { namespace aux {
|
||||||
|
|
||||||
template <typename Keyword, typename Arg>
|
template <typename Keyword, typename Arg>
|
||||||
struct tag_if_lvalue_reference
|
struct tag_if_lvalue_reference
|
||||||
@@ -75,7 +75,7 @@ namespace boost { namespace parameter { namespace aux {
|
|||||||
#include <boost/type_traits/is_lvalue_reference.hpp>
|
#include <boost/type_traits/is_lvalue_reference.hpp>
|
||||||
#include <boost/type_traits/remove_const.hpp>
|
#include <boost/type_traits/remove_const.hpp>
|
||||||
|
|
||||||
namespace boost { namespace parameter { namespace aux {
|
namespace boost { namespace parameter { namespace aux {
|
||||||
|
|
||||||
template <typename Keyword, typename ActualArg>
|
template <typename Keyword, typename ActualArg>
|
||||||
struct tag
|
struct tag
|
||||||
@@ -119,7 +119,7 @@ namespace boost { namespace parameter { namespace aux {
|
|||||||
|
|
||||||
#else // !defined(BOOST_PARAMETER_HAS_PERFECT_FORWARDING)
|
#else // !defined(BOOST_PARAMETER_HAS_PERFECT_FORWARDING)
|
||||||
|
|
||||||
namespace boost { namespace parameter { namespace aux {
|
namespace boost { namespace parameter { namespace aux {
|
||||||
|
|
||||||
template <
|
template <
|
||||||
typename Keyword
|
typename Keyword
|
||||||
@@ -142,7 +142,7 @@ namespace boost { namespace parameter { namespace aux {
|
|||||||
#include <boost/mpl/bool.hpp>
|
#include <boost/mpl/bool.hpp>
|
||||||
#include <boost/type_traits/remove_reference.hpp>
|
#include <boost/type_traits/remove_reference.hpp>
|
||||||
|
|
||||||
namespace boost { namespace parameter { namespace aux {
|
namespace boost { namespace parameter { namespace aux {
|
||||||
|
|
||||||
template <typename Keyword, typename Arg>
|
template <typename Keyword, typename Arg>
|
||||||
struct tag<Keyword,Arg,::boost::mpl::false_>
|
struct tag<Keyword,Arg,::boost::mpl::false_>
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ namespace boost { namespace parameter { namespace aux {
|
|||||||
typedef boost::mpl::bool_<
|
typedef boost::mpl::bool_<
|
||||||
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x564))
|
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x564))
|
||||||
is_cv_reference_wrapper::
|
is_cv_reference_wrapper::
|
||||||
#endif
|
#endif
|
||||||
value> type;
|
value> type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#ifndef BOOST_PARAMETER_VOID_050329_HPP
|
#ifndef BOOST_PARAMETER_VOID_050329_HPP
|
||||||
#define BOOST_PARAMETER_VOID_050329_HPP
|
#define BOOST_PARAMETER_VOID_050329_HPP
|
||||||
|
|
||||||
namespace boost { namespace parameter {
|
namespace boost { namespace parameter {
|
||||||
|
|
||||||
// A placemarker for "no argument passed."
|
// A placemarker for "no argument passed."
|
||||||
// MAINTAINER NOTE: Do not make this into a metafunction
|
// MAINTAINER NOTE: Do not make this into a metafunction
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#include <boost/type_traits/is_same.hpp>
|
#include <boost/type_traits/is_same.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace boost { namespace parameter {
|
namespace boost { namespace parameter {
|
||||||
|
|
||||||
// A metafunction that, given an argument pack, returns the reference type
|
// A metafunction that, given an argument pack, returns the reference type
|
||||||
// of the parameter identified by the given keyword. If no such parameter
|
// of the parameter identified by the given keyword. If no such parameter
|
||||||
@@ -100,7 +100,7 @@ namespace boost { namespace parameter {
|
|||||||
|
|
||||||
#include <boost/parameter/aux_/is_placeholder.hpp>
|
#include <boost/parameter/aux_/is_placeholder.hpp>
|
||||||
|
|
||||||
namespace boost { namespace parameter {
|
namespace boost { namespace parameter {
|
||||||
|
|
||||||
template <
|
template <
|
||||||
typename Parameters
|
typename Parameters
|
||||||
@@ -132,7 +132,7 @@ namespace boost { namespace parameter {
|
|||||||
|
|
||||||
#include <boost/parameter/aux_/result_of0.hpp>
|
#include <boost/parameter/aux_/result_of0.hpp>
|
||||||
|
|
||||||
namespace boost { namespace parameter {
|
namespace boost { namespace parameter {
|
||||||
|
|
||||||
// A metafunction that, given an argument pack, returns the reference type
|
// A metafunction that, given an argument pack, returns the reference type
|
||||||
// of the parameter identified by the given keyword. If no such parameter
|
// of the parameter identified by the given keyword. If no such parameter
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
/**/
|
/**/
|
||||||
#else
|
#else
|
||||||
#define BOOST_PARAMETER_MATCH_DEFAULTS(ArgTypes)
|
#define BOOST_PARAMETER_MATCH_DEFAULTS(ArgTypes)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/parameter/aux_/preprocessor/seq_enum.hpp>
|
#include <boost/parameter/aux_/preprocessor/seq_enum.hpp>
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#include <boost/type_traits/is_array.hpp>
|
#include <boost/type_traits/is_array.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace boost { namespace parameter {
|
namespace boost { namespace parameter {
|
||||||
|
|
||||||
template <typename Tag, typename T>
|
template <typename Tag, typename T>
|
||||||
struct template_keyword : ::boost::parameter::aux::template_keyword_base
|
struct template_keyword : ::boost::parameter::aux::template_keyword_base
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#include <boost/type_traits/is_same.hpp>
|
#include <boost/type_traits/is_same.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace boost { namespace parameter {
|
namespace boost { namespace parameter {
|
||||||
|
|
||||||
// A metafunction that, given an argument pack, returns the value type
|
// A metafunction that, given an argument pack, returns the value type
|
||||||
// of the parameter identified by the given keyword. If no such parameter
|
// of the parameter identified by the given keyword. If no such parameter
|
||||||
@@ -100,7 +100,7 @@ namespace boost { namespace parameter {
|
|||||||
|
|
||||||
#include <boost/parameter/aux_/is_placeholder.hpp>
|
#include <boost/parameter/aux_/is_placeholder.hpp>
|
||||||
|
|
||||||
namespace boost { namespace parameter {
|
namespace boost { namespace parameter {
|
||||||
|
|
||||||
template <
|
template <
|
||||||
typename Parameters
|
typename Parameters
|
||||||
@@ -132,7 +132,7 @@ namespace boost { namespace parameter {
|
|||||||
|
|
||||||
#include <boost/parameter/aux_/result_of0.hpp>
|
#include <boost/parameter/aux_/result_of0.hpp>
|
||||||
|
|
||||||
namespace boost { namespace parameter {
|
namespace boost { namespace parameter {
|
||||||
|
|
||||||
// A metafunction that, given an argument pack, returns the value type
|
// A metafunction that, given an argument pack, returns the value type
|
||||||
// of the parameter identified by the given keyword. If no such parameter
|
// of the parameter identified by the given keyword. If no such parameter
|
||||||
|
|||||||
@@ -91,14 +91,14 @@ namespace test {
|
|||||||
BOOST_PARAMETER_FUN(int, f, 1, 4, f_parameters)
|
BOOST_PARAMETER_FUN(int, f, 1, 4, f_parameters)
|
||||||
#else
|
#else
|
||||||
BOOST_PARAMETER_FUN(void, f, 1, 4, f_parameters)
|
BOOST_PARAMETER_FUN(void, f, 1, 4, f_parameters)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
BOOST_TEST_EQ(p[test::_w][0], p[test::_x | -1]);
|
BOOST_TEST_EQ(p[test::_w][0], p[test::_x | -1]);
|
||||||
BOOST_TEST_EQ(p[test::_w][1], p[test::_y | -2]);
|
BOOST_TEST_EQ(p[test::_w][1], p[test::_y | -2]);
|
||||||
BOOST_TEST_EQ(p[test::_w][2], p[test::_z | -3]);
|
BOOST_TEST_EQ(p[test::_w][2], p[test::_z | -3]);
|
||||||
#if defined(BOOST_NO_VOID_RETURNS)
|
#if defined(BOOST_NO_VOID_RETURNS)
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} // namespace test
|
} // namespace test
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ namespace test {
|
|||||||
// or other processes and even device hardware interrupts may
|
// or other processes and even device hardware interrupts may
|
||||||
// interfere by causing caches to be flushed.
|
// interfere by causing caches to be flushed.
|
||||||
|
|
||||||
// Accumulator function object with plain C++ interface
|
// Accumulator function object with plain C++ interface
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct plain_weight_running_total
|
struct plain_weight_running_total
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ namespace test {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct X
|
struct X
|
||||||
{
|
{
|
||||||
X(int x_ = -1) : x(x_)
|
X(int x_ = -1) : x(x_)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class timer
|
|||||||
// where std::clock_t overflows or resets at surprising values.
|
// where std::clock_t overflows or resets at surprising values.
|
||||||
{
|
{
|
||||||
return (double((std::numeric_limits<std::clock_t>::max)())
|
return (double((std::numeric_limits<std::clock_t>::max)())
|
||||||
- double(_start_time)) / double(CLOCKS_PER_SEC);
|
- double(_start_time)) / double(CLOCKS_PER_SEC);
|
||||||
}
|
}
|
||||||
|
|
||||||
double elapsed_min() const // return minimum value for elapsed()
|
double elapsed_min() const // return minimum value for elapsed()
|
||||||
|
|||||||
Reference in New Issue
Block a user