Return the result of comparing to another string

Synopsis

Declared in header </boost/url/grammar/string_view_base.hpp#L375[boost/url/grammar/string_view_base.hpp,window=blank_]>

constexpr
int
compare(
    size_type pos1,
    size_type n1,
    string_view str,
    size_type pos2,
    size_type n2) const;

Description

See core::string_view::compare

Return Value

  • int

Parameters

Name Type

pos1

size_type

n1

size_type

str

string_view

pos2

size_type

n2

size_type