Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
5418edea
Commit
5418edea
authored
Oct 07, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing function overloads and defaults
parent
d00fc80e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
libcaf_core/caf/dictionary.hpp
libcaf_core/caf/dictionary.hpp
+16
-0
No files found.
libcaf_core/caf/dictionary.hpp
View file @
5418edea
...
@@ -84,6 +84,10 @@ public:
...
@@ -84,6 +84,10 @@ public:
dictionary
()
=
default
;
dictionary
()
=
default
;
dictionary
(
dictionary
&&
)
=
default
;
dictionary
(
const
dictionary
&
)
=
default
;
dictionary
(
std
::
initializer_list
<
value_type
>
xs
)
:
xs_
(
xs
)
{
dictionary
(
std
::
initializer_list
<
value_type
>
xs
)
:
xs_
(
xs
)
{
// nop
// nop
}
}
...
@@ -93,6 +97,10 @@ public:
...
@@ -93,6 +97,10 @@ public:
// nop
// nop
}
}
dictionary
&
operator
=
(
dictionary
&&
)
=
default
;
dictionary
&
operator
=
(
const
dictionary
&
)
=
default
;
// -- iterator access --------------------------------------------------------
// -- iterator access --------------------------------------------------------
iterator
begin
()
noexcept
{
iterator
begin
()
noexcept
{
...
@@ -189,6 +197,14 @@ public:
...
@@ -189,6 +197,14 @@ public:
true
};
true
};
}
}
iterator_bool_pair
insert
(
value_type
kvp
)
{
return
emplace
(
kvp
.
first
,
std
::
move
(
kvp
.
second
));
}
iterator
insert
(
iterator
hint
,
value_type
kvp
)
{
return
emplace_hint
(
hint
,
kvp
.
first
,
std
::
move
(
kvp
.
second
));
}
template
<
class
T
>
template
<
class
T
>
iterator_bool_pair
insert
(
string_view
key
,
T
&&
value
)
{
iterator_bool_pair
insert
(
string_view
key
,
T
&&
value
)
{
return
emplace
(
key
,
std
::
forward
<
T
>
(
value
));
return
emplace
(
key
,
std
::
forward
<
T
>
(
value
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment