COMMS
Template library intended to help with implementation of communication protocols.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
assign.h
Go to the documentation of this file.
1//
2// Copyright 2020 - 2025 (C). Alex Robenko. All rights reserved.
3//
4// This Source Code Form is subject to the terms of the Mozilla Public
5// License, v. 2.0. If a copy of the MPL was not distributed with this
6// file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
10
11#pragma once
12
13#include "comms/util/details/AssignHelper.h"
14
15namespace comms
16{
17
18namespace util
19{
20
38template <typename T, typename TIter>
39void assign(T& obj, TIter from, TIter to)
40{
41 details::AssignHelper<>::assign(obj, from, to);
42}
43
44} // namespace util
45
46} // namespace comms
47
void assign(T &obj, TIter from, TIter to)
Assigns a new value to provided object.
Definition assign.h:39
Main namespace for all classes / functions of COMMS library.