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 size_t

boost::unit_test::data::size_t — Utility for handling the size of a datasets.

Synopsis

// In header: <boost/test/data/size.hpp>


class size_t {
public:
  // member classes/structs/unions

  struct dummy {

    // public member functions
    void nonnull();
  };

  // public member functions
  size_t(std::size_t = 0);
  explicit size_t(bool);
  template<typename T> size_t(T);
  std::size_t value() const;
  bool is_inf() const;
  operator safe_bool() const;
  data::size_t operator--();
  data::size_t operator--(int);
  data::size_t operator++();
  data::size_t operator++(int);
  data::size_t & operator+=(std::size_t);
  data::size_t & operator+=(data::size_t);
  data::size_t & operator-=(std::size_t);
  data::size_t & operator-=(data::size_t);
};

Description

size_t public member functions

  1. size_t(std::size_t s = 0);
  2. explicit size_t(bool);
  3. template<typename T> size_t(T v);
  4. std::size_t value() const;
  5. bool is_inf() const;
  6. operator safe_bool() const;
  7. data::size_t operator--();
  8. data::size_t operator--(int);
  9. data::size_t operator++();
  10. data::size_t operator++(int);
  11. data::size_t & operator+=(std::size_t rhs);
  12. data::size_t & operator+=(data::size_t rhs);
  13. data::size_t & operator-=(std::size_t rhs);
  14. data::size_t & operator-=(data::size_t rhs);

PrevUpHomeNext