Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct in_range_fun

boost::log::in_range_fun — The in_range functor.

Synopsis

// In header: <boost/log/utility/functional/in_range.hpp>


struct in_range_fun {
  // types
  typedef bool result_type;

  // public member functions
  template<typename T, typename U> 
    bool operator()(T const &, std::pair< U, U > const &) const;

  // private static functions
  template<typename T, typename U> 
    static bool op(T const &, std::pair< U, U > const &, mpl::false_ const &);
  template<typename T, typename U> 
    static bool op(T const &, std::pair< U, U > const &, mpl::true_ const &);
};

Description

in_range_fun public member functions

  1. template<typename T, typename U> 
      bool operator()(T const & value, std::pair< U, U > const & rng) const;

in_range_fun private static functions

  1. template<typename T, typename U> 
      static bool op(T const & value, std::pair< U, U > const & rng, 
                     mpl::false_ const &);
  2. template<typename T, typename U> 
      static bool op(T const & value, std::pair< U, U > const & rng, 
                     mpl::true_ const &);

PrevUpHomeNext