8#ifndef INCLUDED_BSLSTL_COMPLEX
9#define INCLUDED_BSLSTL_COMPLEX
102#include <bslscm_version.h>
110#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
141#ifdef BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY
148#ifndef BDE_OMIT_INTERNAL_DEPRECATED
149 using std::basic_ios;
150 using std::basic_iostream;
151 using std::basic_istream;
152 using std::basic_ostream;
153 using std::basic_streambuf;
155 using std::istreambuf_iterator;
157 using std::ostreambuf_iterator;
160#ifdef BSLS_LIBRARYFEATURES_HAS_CPP14_BASELINE_LIBRARY
161 inline namespace literals {
162 inline namespace complex_literals {
163 using namespace std::literals::complex_literals;
168#if defined (BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY) && \
169 defined (BSLS_COMPILERFEATURES_SUPPORT_INLINE_NAMESPACE)
171inline namespace literals {
172inline namespace complex_literals {
177 bsl::complex<double>
operator "" _i(
unsigned long long imag);
179 bsl::complex<double>
operator "" _i(
long double imag);
184 bsl::complex<float>
operator "" _if(
unsigned long long imag);
186 bsl::complex<float>
operator "" _if(
long double imag);
191 bsl::complex<long double>
operator "" _il(
unsigned long long imag);
193 bsl::complex<long double>
operator "" _il(
long double imag);
203#if defined (BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY) && \
204 defined (BSLS_COMPILERFEATURES_SUPPORT_INLINE_NAMESPACE)
206inline namespace literals {
207inline namespace complex_literals {
209 bsl::complex<double>
operator "" _i(
unsigned long long arg)
211 return bsl::complex<double>{0.0,
static_cast<double>(arg)};
215 bsl::complex<double>
operator "" _i(
long double arg)
217 return bsl::complex<double>{0.0,
static_cast<double>(arg)};
221 bsl::complex<float>
operator "" _if(
unsigned long long arg)
223 return bsl::complex<float>{0.0f,
static_cast<float>(arg)};
227 bsl::complex<float>
operator "" _if(
long double arg)
229 return bsl::complex<float>{0.0f,
static_cast<float>(arg)};
233 bsl::complex<long double>
operator "" _il(
unsigned long long arg)
235 return bsl::complex<long double>{0.0L,
static_cast<long double>(arg)};
239 bsl::complex<long double>
operator "" _il(
long double arg)
241 return bsl::complex<long double>{0.0L,
static_cast<long double>(arg)};
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_CONSTEXPR
Definition bsls_keyword.h:588
Definition bdlb_printmethods.h:283