| 407 | // Also known as pick. |
| 408 | template <typename MapType, typename KeyContainer> |
| 409 | MapType map_keep(const KeyContainer& keys, const MapType& map) |
| 410 | { |
| 411 | static_assert(std::is_same< |
| 412 | typename KeyContainer::value_type, |
| 413 | typename MapType::key_type>::value, |
| 414 | "Key types do not match."); |
| 415 | return map_keep_if(bind_2nd_of_2(is_elem_of<KeyContainer>, keys), map); |
| 416 | } |
| 417 | |
| 418 | // API search type: map_drop : ([key], Map key val) -> Map key val |
| 419 | // fwd bind count: 1 |
no test coverage detected