Refactorization: Implemented rValue-reference- and "const char*"-overload to make_container::operator<<

This commit is contained in:
PKEuS 2015-08-11 14:04:44 +02:00
parent ebfdacb0d3
commit c96f85e2a2
1 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,14 @@ public:
data_.insert(data_.end(), val);
return *this;
}
my_type& operator<< (T&& val) {
data_.insert(data_.end(), val);
return *this;
}
my_type& operator<< (const char* val) {
data_.insert(data_.end(), val);
return *this;
}
operator Cont() const {
return data_;
}