Bond
 
Loading...
Searching...
No Matches
box.h
1// Copyright (c) Microsoft. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4#pragma once
5
6#include <bond/core/config.h>
7
8#include <bond/core/bond_types.h>
9
10#include <type_traits>
11
12
13namespace bond
14{
15
16template <typename T>
17Box<typename std::decay<T>::type> make_box(T&& value)
18{
19 Box<typename std::decay<T>::type> b;
20 b.value = std::forward<T>(value);
21 return b;
22}
23
24} // namespace bond
namespace bond
Definition: apply.h:17