Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Header <boost/algorithm/clamp.hpp>

Boost , The Boost Algorithm Library , Reference

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

PrevUpHomeNext

Алгоритм зажима.

Маршалл Клоу

Предложено olafvdspek в https://svn.boost.org/trac/boost/ticket/3215

namespace boost {
  namespace algorithm {
    template<typename T, typename Pred> 
      T const & clamp(T const &, 
                      typename boost::mpl::identity< T >::type const &, 
                      typename boost::mpl::identity< T >::type const &, Pred);
    template<typename T> 
      T const & clamp(const T &, 
                      typename boost::mpl::identity< T >::type const &, 
                      typename boost::mpl::identity< T >::type const &);
    template<typename InputIterator, typename OutputIterator> 
      OutputIterator 
      clamp_range(InputIterator first, InputIterator last, OutputIterator out, 
                  typename std::iterator_traits< InputIterator >::value_type const & lo, 
                  typename std::iterator_traits< InputIterator >::value_type const & hi);
    template<typename Range, typename OutputIterator> 
      boost::disable_if_c< boost::is_same< Range, OutputIterator >::value, OutputIterator >::type 
      clamp_range(const Range &, OutputIterator, 
                  typename std::iterator_traits< typename boost::range_iterator< const Range >::type >::value_type const &, 
                  typename std::iterator_traits< typename boost::range_iterator< const Range >::type >::value_type const &);
    template<typename InputIterator, typename OutputIterator, typename Pred> 
      OutputIterator 
      clamp_range(InputIterator first, InputIterator last, OutputIterator out, 
                  typename std::iterator_traits< InputIterator >::value_type const & lo, 
                  typename std::iterator_traits< InputIterator >::value_type const & hi, 
                  Pred p);
    template<typename Range, typename OutputIterator, typename Pred> 
      boost::disable_if_c< boost::is_same< Range, OutputIterator >::value, OutputIterator >::type 
      clamp_range(const Range &, OutputIterator, 
                  typename std::iterator_traits< typename boost::range_iterator< const Range >::type >::value_type const &, 
                  typename std::iterator_traits< typename boost::range_iterator< const Range >::type >::value_type const &, 
                  Pred);
  }
}

PrevUpHomeNext

Статья Header <boost/algorithm/clamp.hpp> раздела The Boost Algorithm Library Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 00:50:35/0.0050837993621826/1