MongoDB C++ Driver
4.1.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
b
c
d
e
f
i
k
n
p
r
v
w
Enumerations
Related Symbols
o
Topics
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
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
postlude.hpp
The bsoncxx v_noabi macro guard postlude header.
prelude.hpp
The bsoncxx v_noabi macro guard prelude header.
bsoncxx::builder::basic
Declares entities used with "basic" BSON builder syntax.
bsoncxx::builder
Declares entities used to build BSON documents.
bsoncxx::v_noabi::builder::basic
Declares entities used with "basic" BSON builder syntax.
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::v_noabi::builder
Declares entities used to build BSON documents.
bsoncxx::v_noabi
Declares entities whose ABI stability is NOT guaranteed.
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
Generated by
1.13.2