MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / instead_of_if_empty

Function instead_of_if_empty

include/fplus/container_common.hpp:2229–2234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2227template <typename Container, typename ContainerAlt,
2228 typename ContainerOut = internal::remove_const_and_ref_t<Container>>
2229ContainerOut instead_of_if_empty(const ContainerAlt& alt, Container&& xs)
2230{
2231 return instead_of_if(
2232 is_empty<internal::remove_const_and_ref_t<Container>>,
2233 alt, std::forward<Container>(xs));
2234}
2235
2236} // namespace fplus

Callers 1

Calls 1

instead_of_ifFunction · 0.70

Tested by

no test coverage detected