Function all

Synopsis

#include <include/internal/catch_list.h>

std::string all() const

Description

No description yet.

Source

Lines 86-100 in include/internal/catch_list.cpp. Line 24 in include/internal/catch_list.h.

std::string TagInfo::all() const {
    size_t size = 0;
    for (auto const& spelling : spellings) {
        // Add 2 for the brackes
        size += spelling.size() + 2;
    }
    std::string out; out.reserve(size);
    for (auto const& spelling : spellings) {
        out += '[';
        out += spelling;
        out += ']';
    }
    return out;
}





Add Discussion as Guest

Log in