Update json.h

This commit is contained in:
VBW 2023-12-06 00:30:31 +00:00 committed by GitHub
parent 4f3f5deaaa
commit 531c351a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -456,6 +456,13 @@ namespace crow
return detail::r_string{start_, end_};
}
/// Any stringstream lexical cast.
template <typename cast_t>
cast_t cast() const
{
return utility::lexical_cast<cast_t>(start_, end_ - start_);
}
/// The list or object value
std::vector<rvalue> lo()
{