kumi v3.1.0
Exquisite Epidote
Loading...
Searching...
No Matches

◆ operator=()

template<typename ID, typename Checker>
template<typename T>
field< tag_type, std::unwrap_ref_decay_t< T > > kumi::identifier< ID, Checker >::operator= ( T && v) const
inlineconstexprnoexcept

Assignment of a value to a identifier.

Bind a value to current kumi::identifier and returns an instance of a field.

Parameters
vBound value
Returns
An kumi::field binding the identifier to v.
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
using namespace kumi::literals;
std::cout << ("value"_id = 42.1337) << "\n";
}