Changeset 0f158be5 in mainline for uspace/lib/cpp/include/impl/deque.hpp
- Timestamp:
- 2018-07-05T21:41:21Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 35b706e8
- Parents:
- a44c35d
- git-author:
- Dzejrou <dzejrou@…> (2018-04-11 19:24:22)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/deque.hpp
ra44c35d r0f158be5 422 422 deque& operator=(const deque& other) 423 423 { 424 // TODO: implement 424 if (data_) 425 fini_(); 426 427 prepare_for_size_(other.size_); 428 init_(); 429 copy_from_range_(other.begin(), other.end()); 430 431 return *this; 425 432 } 426 433 … … 434 441 deque& operator=(initializer_list<T> init) 435 442 { 436 // TODO: implement 443 if (data_) 444 fini_(); 445 446 prepare_for_size_(init.size()); 447 init_(); 448 copy_from_range_(init.begin(), init.end()); 449 450 return *this; 437 451 } 438 452
Note:
See TracChangeset
for help on using the changeset viewer.