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 for the latest Boost documentation.
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();
  };
  // construct/copy/destruct
  size_t(std::size_t = 0);
  explicit size_t(bool);
  template<typename T> size_t(T);

  // public member functions
  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 construct/copy/destruct

  1. size_t(std::size_t s = 0);
  2. explicit size_t(bool);
  3. template<typename T> size_t(T v);

size_t public member functions

  1. std::size_t value() const;
  2. bool is_inf() const;
  3. operator safe_bool() const;
  4. data::size_t operator--();
  5. data::size_t operator--(int);
  6. data::size_t operator++();
  7. data::size_t operator++(int);
  8. data::size_t & operator+=(std::size_t rhs);
  9. data::size_t & operator+=(data::size_t rhs);
  10. data::size_t & operator-=(std::size_t rhs);
  11. data::size_t & operator-=(data::size_t rhs);

PrevUpHomeNext