thrust

◆ operator>>()

template<typename T , typename CharT , typename Traits >
__host__ std::basic_istream<CharT, Traits>& thrust::operator>> ( std::basic_istream< CharT, Traits > &  is,
complex< T > &  z 
)

Reads a complex number from an input stream.

The recognized formats are:

  • real
  • (real)
  • (real, imaginary)

The values read must be convertible to the complex's value_type

Parameters
isThe input stream.
zThe complex number to set.

Referenced by thrust::complex< T >::operator std::complex< T >().