lst-0654-book.cpp
// https://godbolt.org/z/jqzTMxYKv
template <std::copyable T> // C++20-Concept
class MyContainer {
T data_;
public:
void setData(const T& d) { data_ = d; }
T getData() const { return data_; }
};
// https://godbolt.org/z/jqzTMxYKv
template <std::copyable T> // C++20-Concept
class MyContainer {
T data_;
public:
void setData(const T& d) { data_ = d; }
T getData() const { return data_; }
};