Bond
 
Loading...
Searching...
No Matches
select_protocol_fwd.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_fwd.h"
9
10#include <utility>
11
12namespace bond
13{
14
15// Use compile-time schema
16template <typename T, typename Protocols = BuiltInProtocols, typename Buffer, typename Transform>
17inline std::pair<ProtocolType, bool> SelectProtocolAndApply(Buffer& input, const Transform& transform);
18
19
20// Use runtime schema
21template <typename Protocols = BuiltInProtocols, typename Buffer, typename Transform>
22inline std::pair<ProtocolType, bool> SelectProtocolAndApply(
23 const RuntimeSchema& schema,
24 Buffer& input,
25 const Transform& transform);
26
27} // namespace bond
namespace bond
Definition: apply.h:17