|
JSON Voorhees
Killer JSON for C++
|
Copyright (c) 2015-2026 by Travis Gockel. More...
#include <jsonv/config.hpp>#include <jsonv/serialization/deserialize.hpp>#include <jsonv/serialization/serialize.hpp>#include "adapter_for.hpp"#include <expected>#include <utility>
Include dependency graph for function_adapter.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | jsonv::function_adapter< T, FDeserialize, FSerialize > |
An adapter which calls one function to deserialize and another to serialize. More... | |
Functions | |
| template<typename FDeserialize , typename FSerialize > | |
| auto | jsonv::make_adapter (FDeserialize deserialize_, FSerialize serialize_) -> function_adapter< detail::deserialize_function_result_t< FDeserialize >, FDeserialize, FSerialize > |
Create an adapter from deserialize_ and serialize_, deducing the adapted type from what deserialize_ returns. | |
Copyright (c) 2015-2026 by Travis Gockel.
All rights reserved.
This program is free software: you can redistribute it and/or modify it under the terms of the Apache License as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any later version.
Definition in file function_adapter.hpp.