Skip to content

Commit

Permalink
[FOLD] doc tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
vinniefalco committed May 27, 2022
1 parent 5ccf9c8 commit 461f088
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions include/boost/json/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2246,23 +2246,26 @@ class string
@throw std::out_of_range `pos > size()`
*/
/**@{*/
string_view
subview(
std::size_t pos,
std::size_t count = npos) const
std::size_t pos
#ifdef BOOST_JSON_DOCS
= 0
#endif
,std::size_t count = npos) const
{
return subview().substr(pos, count);
}

// this is a faster, leaner, noexcept
// version of subview() with no args
#ifndef BOOST_JSON_DOCS
string_view
subview() const noexcept
{
return string_view( data(), size() );
}
/**@}*/
#endif

//------------------------------------------------------

Expand Down

0 comments on commit 461f088

Please sign in to comment.