1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add type_traits is_swappable, conjunction, disjunction, negation

This commit is contained in:
bolero-MURAKAMI 2016-04-05 02:49:50 +09:00
parent 913dc8ca44
commit aa8e265188
18 changed files with 323 additions and 10 deletions

View file

@ -9,8 +9,8 @@
#define SPROUT_CONTAINER_STD_COMPLEX_HPP
#include <complex>
#include <type_traits>
#include <stdexcept>
#include <type_traits>
#include <sprout/workaround/std/cstddef.hpp>
#include <sprout/utility/forward.hpp>
#include <sprout/container/traits.hpp>
@ -25,7 +25,7 @@ namespace sprout {
operator()(Complex const& c, Index i) const {
return i == 0 ? c.real()
: i == 1 ? c.imag()
: throw std::out_of_range("std_complex_at<>: index out of range")
: throw std::out_of_range("std_complex_at: index out of range")
;
}
};