mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
add back_inserter, front_inserter
This commit is contained in:
parent
7c706381d4
commit
74e83e31a7
70 changed files with 1094 additions and 186 deletions
|
@ -27,12 +27,12 @@ namespace sprout {
|
|||
T im_;
|
||||
public:
|
||||
SPROUT_CONSTEXPR complex(T const& re = T(), T const& im = T()) SPROUT_NOEXCEPT
|
||||
: re_(re) , im_(im)
|
||||
: re_(re), im_(im)
|
||||
{}
|
||||
SPROUT_CONSTEXPR complex(complex const&) = default;
|
||||
template<typename X>
|
||||
SPROUT_CONSTEXPR complex(complex<X> const& other) SPROUT_NOEXCEPT
|
||||
: re_(other.real()) , im_(other.imag())
|
||||
: re_(other.real()), im_(other.imag())
|
||||
{}
|
||||
SPROUT_CONSTEXPR T real() const SPROUT_NOEXCEPT {
|
||||
return re_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue