The sentinel value returned by search functions when no match is found.

Synopsis

Declared in <folly/FixedString.h>

constexpr std::size_t const& npos = detail::fixedstring::FixedStringBase::npos;

Description

The type is const std::size_t& so that folly::npos has the same address in every translation unit. This avoids potential violations of the ODR.

Created with MrDocs