MCPcopy Create free account
hub / github.com/apache/arrow / Foo

Class Foo

cpp/src/arrow/result_test.cc:47–56  ·  view source on GitHub ↗

A data type without a default constructor.

Source from the content-addressed store, hash-verified

45
46// A data type without a default constructor.
47struct Foo {
48 int bar;
49 std::string baz;
50
51 explicit Foo(int value) : bar(value), baz(kStringElement) {}
52
53 bool operator==(const Foo& other) const {
54 return (bar == other.bar) && (baz == other.baz);
55 }
56};
57
58// A data type with only copy constructors.
59struct CopyOnlyDataType {

Callers 1

operator()Method · 0.70

Calls

no outgoing calls

Tested by 1

operator()Method · 0.56