/usr/include/boost/numeric/odeint/util
Edit: /usr/include/boost/numeric/odeint/util/is_resizeable.hpp (2102B)
/*
[auto_generated]
boost/numeric/odeint/util/is_resizeable.hpp
[begin_description]
Metafunction to determine if a state type can resized. For usage in the steppers.
[end_description]
Copyright 2011-2012 Karsten Ahnert
Copyright 2011 Mario Mulansky
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)
*/
#ifndef BOOST_NUMERIC_ODEINT_UTIL_IS_RESIZEABLE_HPP_INCLUDED
#define BOOST_NUMERIC_ODEINT_UTIL_IS_RESIZEABLE_HPP_INCLUDED
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
namespace boost {
namespace numeric {
namespace odeint {
/*
* by default any type is not resizable
*/
template< typename Container , typename Enabler = void >
struct is_resizeable_sfinae : boost::false_type {};
template< typename Container >
struct is_resizeable : is_resizeable_sfinae< Container > {};
/*
* specialization for std::vector
*/
template< class V, class A >
struct is_resizeable< std::vector< V , A > > : boost::true_type {};
/*
* sfinae specialization for fusion sequences
*/
template< typename FusionSequence >
struct is_resizeable_sfinae<
FusionSequence ,
typename boost::enable_if< typename boost::fusion::traits::is_sequence< FusionSequence >::type >::type >
{
typedef typename boost::mpl::find_if< FusionSequence , is_resizeable< boost::mpl::_1 > >::type iter;
typedef typename boost::mpl::end< FusionSequence >::type last;
typedef typename boost::mpl::if_< boost::is_same< iter , last > , boost::false_type , boost::true_type >::type type;
const static bool value = type::value;
};
} // namespace odeint
} // namespace numeric
} // namespace boost
#endif // BOOST_NUMERIC_ODEINT_UTIL_IS_RESIZEABLE_HPP_INCLUDED