| 400 | // Helper to insert element into container (vector or set) |
| 401 | template <typename Container, typename T> |
| 402 | inline void collection_insert(Container &result, T &&elem) { |
| 403 | if constexpr (has_push_back_v<Container, T>) { |
| 404 | result.push_back(std::forward<T>(elem)); |
| 405 | } else { |
| 406 | result.insert(std::forward<T>(elem)); |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | /// Read collection data for polymorphic or shared-ref elements. |
| 411 | template <typename T, typename Container> |
no outgoing calls
no test coverage detected