boost::algorithm::size — Free-standing size() function.
template<typename C> collection_traits< C >::size_type size(const C & c);
Get the size of the container. Uses collection_traits.