Expression Templates Library (ETL)
Public Types | Public Member Functions | List of all members
etl::assignable< D, V > Struct Template Reference

CRTP class to inject assign operations to matrix and vector structures. More...

#include <assignable.hpp>

Public Types

using derived_t = D
 The derived type.
 
using value_type = V
 The value type.
 

Public Member Functions

template<etl_expr E>
derived_toperator= (E &&e)
 Assign the given expression to the unary expression. More...
 
derived_toperator= (const value_type &v)
 Assign the given expression to the unary expression. More...
 
template<std_container Container>
derived_toperator= (const Container &vec) requires(std
 Assign the given container to the unary expression. More...
 

Detailed Description

template<typename D, typename V>
struct etl::assignable< D, V >

CRTP class to inject assign operations to matrix and vector structures.

Member Function Documentation

◆ operator=() [1/3]

template<typename D, typename V>
template<etl_expr E>
derived_t& etl::assignable< D, V >::operator= ( E &&  e)
inline

Assign the given expression to the unary expression.

Parameters
eThe expression to get the values from
Returns
the unary expression

◆ operator=() [2/3]

template<typename D, typename V>
derived_t& etl::assignable< D, V >::operator= ( const value_type v)
inline

Assign the given expression to the unary expression.

Parameters
vThe expression to get the values from
Returns
the unary expression

◆ operator=() [3/3]

template<typename D, typename V>
template<std_container Container>
derived_t& etl::assignable< D, V >::operator= ( const Container &  vec)
inline

Assign the given container to the unary expression.

Parameters
vecThe container to get the values from
Returns
the unary expression

The documentation for this struct was generated from the following file: