Added test case for recursive variadic template specialization

This commit is contained in:
Bartek Kryza
2022-08-07 23:08:37 +02:00
parent 1844b992aa
commit ae7ef11e43
20 changed files with 416 additions and 130 deletions

View File

@@ -170,6 +170,10 @@ bool starts_with(
template <> bool starts_with(const std::string &s, const std::string &prefix);
template <typename T> bool ends_with(const T &value, const T &suffix);
template <> bool ends_with(const std::string &value, const std::string &suffix);
template <typename T>
bool ends_with(const std::vector<T> &col, const std::vector<T> &suffix)
{