AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ castedpointer()

template<class T >
template<class TT >
TT* aff::ConstCArray< T >::castedpointer ( ) const
inline

return type-casted pointer to first element in Fortran layout

The cast checks for const-correctness and type-size. But you have to ensure that there is a meaningful relation between both types involved.

See also
aff::util::SizeCheckedCast

Definition at line 200 of file Carray.h.

References aff::ConstCArray< T >::pointer().

201  { return(SizeCheckedCast<Tconst_value,TT>::cast(this->pointer())); }
Tconst_pointer pointer() const
return pointer to first element in Fortran layout
Definition: Carray.h:188
static TT * cast(T *p)
return a type-casted (and type-checked) pointer
Definition: checkedcast.h:88
Here is the call graph for this function: