Android-cuttlefish cvd tool
Classes | Namespaces | Typedefs | Functions
contains.h File Reference
#include <algorithm>
#include <iterator>
#include <string>
#include <string_view>
#include <type_traits>
Include dependency graph for contains.h:

Go to the source code of this file.

Classes

struct  cuttlefish::contains_internal_impl::HasFindImpl< Container, T, typename >
 
struct  cuttlefish::contains_internal_impl::HasFindImpl< Container, T, VoidTypeIfHasFind< Container, T > >
 
struct  cuttlefish::contains_internal_impl::IsString< T >
 
struct  cuttlefish::contains_internal_impl::IsStringView< T >
 

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::contains_internal_impl
 

Typedefs

template<typename Container , typename Key >
using cuttlefish::contains_internal_impl::VoidTypeIfHasFind = decltype(void(std::declval< Container & >().find(std::declval< Key & >())))
 
template<typename T >
using cuttlefish::contains_internal_impl::RemoveCvref = typename std::remove_cv_t< typename std::remove_reference_t< T > >
 
template<typename T , typename U >
using cuttlefish::contains_internal_impl::IsSame = typename std::is_same< RemoveCvref< T >, RemoveCvref< U > >
 

Functions

template<typename Container , typename U , typename = std::enable_if_t< contains_internal_impl::HasFindImpl<Container, U>::value && (!contains_internal_impl::IsString<Container>::value && !contains_internal_impl::IsStringView<Container>::value), void>>
constexpr bool cuttlefish::Contains (Container &&container, U &&u)
 
template<typename T >
constexpr bool cuttlefish::Contains (const std::string &s, T &&t)
 
template<typename T >
constexpr bool cuttlefish::Contains (const std::string_view &s, T &&t)