Refactorization: Implemented rValue-reference- and "const char*"-overload to make_container::operator<<
This commit is contained in:
parent
ebfdacb0d3
commit
c96f85e2a2
|
@ -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_;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue