Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Trade
{
public:
Trade(Trade&& other)
: m_flows(std::move(other.m_flows))
{
for (auto& flow: m_flows) // O(N) complexity
flow.setTrade(this);
}
private:
std::vector<Flow> m_flows;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.