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

Class template small_with_tolerance

Boost , Boost.Test , Header <boost/test/tools/floating_point_comparison.hpp>

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

Class template small_with_tolerance

boost::math::fpc::small_with_tolerance — Predicate for comparing floating point numbers against 0.

Synopsis

// In header: <boost/test/tools/floating_point_comparison.hpp>
template<typename FPT> 
class small_with_tolerance {
public:
  // types
  typedef bool result_type;
  // construct/copy/destruct
  explicit small_with_tolerance(FPT);
  // public member functions
  bool operator()(FPT) const;
};

Description

Служит той же цели, что иboost::math::fpc::close_at_toleranceНо используется, когда один из операндов недействителен.

small_with_tolerance public construct/copy/destruct

  1. <
    explicitsmall_with_tolerance(FPTtolerance);
    >

small_with_tolerance public member functions

  1. <
    booloperator()(FPTfpv)const;
    >

PrevUpHomeNext

Статья Class template small_with_tolerance раздела Boost.Test Header <boost/test/tools/floating_point_comparison.hpp> может быть полезна для разработчиков на c++ и boost.




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



:: Главная :: Header <boost/test/tools/floating_point_comparison.hpp> ::


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 07:39:49/0.0075898170471191/1