diff options
| author | Tyge Løvset <[email protected]> | 2021-02-25 12:24:50 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-25 12:24:50 +0100 |
| commit | 7d608d825799b2cd8cc9f84bdd647848581787ae (patch) | |
| tree | e4ecb965f88365502fe93495379b91464e143e2c | |
| parent | 50c96c3ee5c25d9de38449a442679f895322f04e (diff) | |
| download | STC-modified-7d608d825799b2cd8cc9f84bdd647848581787ae.tar.gz STC-modified-7d608d825799b2cd8cc9f84bdd647848581787ae.zip | |
Update README.md
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -204,13 +204,13 @@ elements using dynamic memory. | insert() | emplace() | cmap, cset, csmap, csset |
| insert_or_assign(), put() | emplace_or_assign() | cmap, csmap |
| push_back() | emplace_back() | cvec, cdeq, clist |
-| push_front() | emplace_front() | cvec, cdeq, clist |
+| push_front() | emplace_front() | cdeq, clist |
| insert_after() | emplace_after() | clist |
***Note***: For containers of integral or trivial element types, **emplace** and corresponding non-emplace methods are
identical, so the following does not apply for those.
-The **emplace** methods ***constructs*** or ***clones*** their own copy of the element to be added.
+The **emplace** methods ***construct*** or ***clone*** their own copy of the element to be added.
In contrast, the non-emplace methods requires elements to be explicitly constructed or cloned before adding them.
Strings are the most commonly used non-trivial data type. STC containers have proper pre-defined
|
