KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches

◆ operator=()

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

Assignment of a value to an identifier.

Binds a value to the current kumi::identifier and returns a field instance.

Parameters
vBound value
Returns
A 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";
}