8#ifndef INCLUDED_BSLSTL_COMPLEX
9#define INCLUDED_BSLSTL_COMPLEX
104#include <bslscm_version.h>
112#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
143#ifdef BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY
150#ifndef BDE_OMIT_INTERNAL_DEPRECATED
151 using std::basic_ios;
152 using std::basic_iostream;
153 using std::basic_istream;
154 using std::basic_ostream;
155 using std::basic_streambuf;
157 using std::istreambuf_iterator;
159 using std::ostreambuf_iterator;
162#ifdef BSLS_LIBRARYFEATURES_HAS_CPP14_BASELINE_LIBRARY
163 inline namespace literals {
164 inline namespace complex_literals {
165 using namespace std::literals::complex_literals;
170#if defined (BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY) && \
171 defined (BSLS_COMPILERFEATURES_SUPPORT_INLINE_NAMESPACE)
173inline namespace literals {
174inline namespace complex_literals {
179 bsl::complex<double>
operator""_i(
unsigned long long imag);
181 bsl::complex<double>
operator""_i(
long double imag);
186 bsl::complex<float>
operator""_if(
unsigned long long imag);
188 bsl::complex<float>
operator""_if(
long double imag);
193 bsl::complex<long double>
operator""_il(
unsigned long long imag);
195 bsl::complex<long double>
operator""_il(
long double imag);
205#if defined (BSLS_LIBRARYFEATURES_HAS_CPP11_BASELINE_LIBRARY) && \
206 defined (BSLS_COMPILERFEATURES_SUPPORT_INLINE_NAMESPACE)
208inline namespace literals {
209inline namespace complex_literals {
211 bsl::complex<double>
operator""_i(
unsigned long long arg)
213 return bsl::complex<double>{0.0,
static_cast<double>(arg)};
217 bsl::complex<double>
operator""_i(
long double arg)
219 return bsl::complex<double>{0.0,
static_cast<double>(arg)};
223 bsl::complex<float>
operator""_if(
unsigned long long arg)
225 return bsl::complex<float>{0.0f,
static_cast<float>(arg)};
229 bsl::complex<float>
operator""_if(
long double arg)
231 return bsl::complex<float>{0.0f,
static_cast<float>(arg)};
235 bsl::complex<long double>
operator""_il(
unsigned long long arg)
237 return bsl::complex<long double>{0.0L,
static_cast<long double>(arg)};
241 bsl::complex<long double>
operator""_il(
long double arg)
243 return bsl::complex<long double>{0.0L,
static_cast<long double>(arg)};
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
#define BSLS_KEYWORD_CONSTEXPR
Definition bsls_keyword.h:624
Definition bdlat_valuetypefunctions.h:939