Skip to content

may not to use std::move to not ref variable #21

@superzmy

Description

@superzmy

KeyValuePair(K k, V v) : key(std::move(k)), value(std::move(v)) {}

to

template<typename KK, typename VV>
KeyValuePair(KK&& k, VV&& v) : key(std::forward(k)), value(std::forward(v)) {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions