/*============================================================================= Copyright (c) 2011-2013 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_COMPLEX_UDL_HPP #define SPROUT_COMPLEX_UDL_HPP #include #include #if SPROUT_USE_USER_DEFINED_LITERALS namespace sprout { namespace udl { namespace complex { // // _i // inline SPROUT_CONSTEXPR sprout::complex operator"" _i(long double x) { return sprout::complex(0, x); } // // _if // _iF // inline SPROUT_CONSTEXPR sprout::complex operator"" _if(long double x) { return sprout::complex(0, x); } inline SPROUT_CONSTEXPR sprout::complex operator"" _iF(long double x) { return sprout::complex(0, x); } // // _il // _iL // inline SPROUT_CONSTEXPR sprout::complex operator"" _il(long double x) { return sprout::complex(0, x); } inline SPROUT_CONSTEXPR sprout::complex operator"" _iL(long double x) { return sprout::complex(0, x); } } // namespace complex using sprout::udl::complex::operator"" _i; using sprout::udl::complex::operator"" _if; using sprout::udl::complex::operator"" _iF; using sprout::udl::complex::operator"" _il; using sprout::udl::complex::operator"" _iL; } // namespace udl using sprout::udl::complex::operator"" _i; using sprout::udl::complex::operator"" _if; using sprout::udl::complex::operator"" _iF; using sprout::udl::complex::operator"" _il; using sprout::udl::complex::operator"" _iL; } // namespace sprout #endif // #if SPROUT_USE_USER_DEFINED_LITERALS #endif // #ifndef SPROUT_COMPLEX_UDL_HPP