MongoDB C++ Driver
mongocxx-4.0.0
Toggle main menu visibility
Main Page
Files
File List
File Members
All
Macros
Namespaces
Namespace List
Namespace Members
All
b
c
e
f
k
l
m
o
r
s
t
v
w
Functions
c
e
f
k
m
o
s
t
v
Variables
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
Typedefs
Enumerations
Related Symbols
Groups
Topics
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
bsoncxx
v_noabi
bsoncxx
builder
basic
kvp.hpp
Go to the documentation of this file.
1
// Copyright 2009-present MongoDB, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#pragma once
16
17
#include <tuple>
18
19
#include <
bsoncxx/config/prelude.hpp
>
20
21
namespace
bsoncxx
{
22
namespace
v_noabi {
23
namespace
builder {
24
namespace
basic {
25
30
template
<
typename
T,
typename
U>
31
std::tuple<T&&, U&&>
kvp
(T&& t, U&& u) {
32
return
std::tuple<T&&, U&&>(std::forward<T>(t), std::forward<U>(u));
33
}
31
std::tuple<T&&, U&&>
kvp
(T&& t, U&& u) {
…
}
34
35
}
// namespace basic
36
}
// namespace builder
37
}
// namespace v_noabi
38
}
// namespace bsoncxx
39
40
namespace
bsoncxx
{
41
namespace
builder {
42
namespace
basic {
43
44
using ::bsoncxx::v_noabi::builder::basic::kvp;
45
46
}
// namespace basic
47
}
// namespace builder
48
}
// namespace bsoncxx
49
50
#include <
bsoncxx/config/postlude.hpp
>
51
56
57
#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
58
59
namespace
bsoncxx
{
60
namespace
builder {
61
namespace
basic {
62
64
template
<
typename
T,
typename
U>
65
std::tuple<T&&, U&&>
kvp
(T&& t, U&& u);
66
67
}
// namespace basic
68
}
// namespace builder
69
}
// namespace bsoncxx
70
71
#endif
// defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
postlude.hpp
The bsoncxx macro guard postlude header.
prelude.hpp
The bsoncxx macro guard prelude header.
bsoncxx::builder::basic::kvp
std::tuple< T &&, U && > kvp(T &&t, U &&u)
bsoncxx::v_noabi::builder::basic::kvp
bsoncxx::v_noabi::builder::basic::kvp
std::tuple< T &&, U && > kvp(T &&t, U &&u)
Constructs a key-value pair from a string key and a BSON value.
Definition
kvp.hpp:31
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
Generated by
1.12.0