summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-12 11:56:37 +0100
committerGitHub <[email protected]>2022-01-12 11:56:37 +0100
commit16d3b7d89f9749209e0c3686edb09f4f4e1532a1 (patch)
tree49ca18a80819a29144cbd6b3a1b4193dc8cb8d21
parent0cd76f1c754753cc8452cef60e435e4446ad89ee (diff)
downloadSTC-modified-16d3b7d89f9749209e0c3686edb09f4f4e1532a1.tar.gz
STC-modified-16d3b7d89f9749209e0c3686edb09f4f4e1532a1.zip
Update README.md
-rw-r--r--README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index 86b49f48..ec8187c2 100644
--- a/README.md
+++ b/README.md
@@ -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 |
|:--------------------------|:-----------------------------|:--------------------------------------------|