Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
34534
#include <iostream> #include <vector> struct alma { alma(int x) : x(x) {} bool operator==(const alma& rhs) const noexcept { return x == rhs.x; } int x; }; int main() { std::vector<alma> x(1, alma{0}); // the way you shoudl initilaize this std::vector<alma> y = std::vector<alma>{ alma{0} }; // the way you did std::cout << (x == y); }
run
|
edit
|
history
|
help
0
Mi primer ejemplo con RexTester colgado en My wall
Heap: insert and deleteMin() Implementations
my override
vector flavors....
Forgetting to check end
Pascals Triangle
Find in vector vs unordered_map
Assignment Operator Example
Throttle Example in C++
test