Template class Komplex with concepts
komplex2.h File Reference
#include <cassert>
#include <cmath>
#include <concepts>
#include <iostream>
#include "komplex2.tcc"
Include dependency graph for komplex2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Komplex< T >
 

Functions

template<FloatDouble T>
Komplex< T > operator+ (T lhs, const Komplex< T > &rhs)
 
template<FloatDouble T>
abs (const Komplex< T > &rhs)
 

Variables

template<typename T >
concept FloatDouble = sizeof(T)>=sizeof(float) && std::floating_point<T>
 

Function Documentation

◆ abs()

template<FloatDouble T>
T abs ( const Komplex< T > &  rhs)

Definition at line 125 of file komplex2.h.

Here is the call graph for this function:

◆ operator+()

template<FloatDouble T>
Komplex<T> operator+ ( lhs,
const Komplex< T > &  rhs 
)

Addiert zu einer reellen Zahl eine komplexe Zahl

Parameters
[in]lhsrelle Zahl
[in]rhskomplexe Zahl
Returns
Sum of lhs + rhs

Variable Documentation

◆ FloatDouble

template<typename T >
concept FloatDouble = sizeof(T)>=sizeof(float) && std::floating_point<T>

Template Klasse fuer komplexe Zahlen zur Demonstration.

Warning
Bei Templateklassen (und -funktionen) muss der Implementierungsteil, hier im File komplex.tpp, im Headerfile inkludiert werden. Das Implementierungsfile darf nicht noch einmal ueberstzt werden!

Definition at line 16 of file komplex2.h.