Function c_str

Synopsis

#include <include/internal/catch_stringref.h>

auto c_str() const -> char const *

Description

No description yet.

Source

Lines 21-24 in include/internal/catch_stringref.cpp. Line 71 in include/internal/catch_stringref.h.

auto StringRef::c_str() const -> char const* {
    CATCH_ENFORCE(isNullTerminated(), "Called StringRef::c_str() on a non-null-terminated instance");
    return m_start;
}





Add Discussion as Guest

Log in