C++11新特性(27)- 容器的emplace成員

問題還是老問題 考慮下面的Rect類: struct Rect {    Rect(int l, int t, int r, int b)        :left{l}, top{t}        ,right{r}, bottom{b}    {}    int left;    int top;    int right;    int bottom; }; 當需要向容器添加Rect對象時
相關文章
相關標籤/搜索