Boost C++ Libraries

PrevUpHomeNext

Function parse_template

boost::taar::matcher::parse_template — Parse a path template into a sequence of typed segments.

Synopsis

// In header: <boost/taar/matcher/template_parser.hpp>


result< parsed_template_ref > parse_template(std::string_view path);

Description

Parameters:

path

The template text (e.g. "/users/{id}/files/{*path}").

Returns:

A boost::taar::result carrying the parsed segments on success, or a failure with a boost::taar::error code (error::no_absolute_template or error::invalid_template) on failure.


PrevUpHomeNext