MCPcopy Create free account
hub / github.com/boostorg/compute / operator+

Method operator+

include/boost/compute/container/valarray.hpp:103–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 valarray<T>& operator%=(const T& val);
102
103 valarray<T> operator+() const
104 {
105 // This operator can be used with any type.
106 valarray<T> result(size());
107 copy(begin(), end(), result.begin());
108 return result;
109 }
110
111 valarray<T> operator-() const
112 {

Callers

nothing calls this directly

Calls 2

copyFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected