cxxomfort  rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
Namespaces | Functions
p1227r0-ssize.hpp File Reference

Implements part of p1227r0, a proposal for a general (non-member) unsigned size function. More...

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 

Functions

template<typename Container >
Container::difference_type ssize (Container const &c)
 

Detailed Description

Implements part of p1227r0, a proposal for a general (non-member) unsigned size function.

see: https://wg21.link/p1227r0

Function Documentation

◆ ssize()

Container::difference_type cxxomfort::impl::ssize ( Container const &  c)
inline

Returns the size of a sequence-like object, as calculated by a call to .size(), converted to a difference_type .

See also
  • {p1227r0} by Jorg Brown
  • not to be confused with absdistance() .