diff options
| author | Tyge Løvset <[email protected]> | 2022-01-12 11:56:37 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-12 11:56:37 +0100 |
| commit | 16d3b7d89f9749209e0c3686edb09f4f4e1532a1 (patch) | |
| tree | 49ca18a80819a29144cbd6b3a1b4193dc8cb8d21 | |
| parent | 0cd76f1c754753cc8452cef60e435e4446ad89ee (diff) | |
| download | STC-modified-16d3b7d89f9749209e0c3686edb09f4f4e1532a1.tar.gz STC-modified-16d3b7d89f9749209e0c3686edb09f4f4e1532a1.zip | |
Update README.md
| -rw-r--r-- | README.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -309,8 +309,11 @@ other elements using dynamic memory or shared resources. The **emplace** methods ***constructs*** or ***clones*** the given elements when they are added to the container. In contrast, the *non-emplace* methods ***moves*** the given elements into the -container. For containers of integral or trivial element types, **emplace** and corresponding -*non-emplace* methods are identical. +container. + +***Note***: For containers with integral/trivial element types, or when neither `i_keyraw/i_valraw` nor +`i_valfrom/i_valfrom` are defined, the **emplace** functions are *not* available (or needed), as it +can easier lead to mistakes. | non-emplace: Move | emplace: Clone | Container | |:--------------------------|:-----------------------------|:--------------------------------------------| |
