LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
prelude.h File Reference
#include <functional>
#include <type_traits>
#include <iterator>
#include <QPair>
#include <QStringList>
#include <boost/optional.hpp>
+ Include dependency graph for prelude.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  boost::iterator_range< typename >
 
struct  LeechCraft::Util::WrapType< T >
 
struct  LeechCraft::Util::WrapType< QList< QString > >
 
struct  LeechCraft::Util::detail::CountArgs< typename >
 
struct  LeechCraft::Util::detail::CountArgs< Container< Args... > >
 
struct  LeechCraft::Util::detail::Replace< Container, T >
 
struct  LeechCraft::Util::detail::Replace< Container< U >, T >
 
struct  LeechCraft::Util::detail::IsNotBrokenSFINAE< typename >
 
struct  LeechCraft::Util::detail::IsNotBrokenSFINAE< boost::iterator_range< T > >
 

Namespaces

 boost
 
 LeechCraft
 
 LeechCraft::Util
 
 LeechCraft::Util::detail
 

Typedefs

template<typename T >
using LeechCraft::Util::WrapType_t = typename WrapType< T >::type
 

Functions

template<typename T1 , typename T2 , template< typename U > class Container, typename F >
auto LeechCraft::Util::ZipWith (const Container< T1 > &c1, const Container< T2 > &c2, F f) -> WrapType_t< Container< std::decay_t< std::result_of_t< F(T1, T2)>>>>
 
template<typename T1 , typename T2 , template< typename U > class Container, template< typename U1, typename U2 > class Pair = QPair>
auto LeechCraft::Util::Zip (const Container< T1 > &c1, const Container< T2 > &c2) -> Container< Pair< T1, T2 >>
 
template<typename Res , typename T >
void LeechCraft::Util::detail::Append (Res &result, T &&val, decltype(result.push_back(std::forward< T >(val))) *=nullptr)
 
template<typename Res , typename T >
void LeechCraft::Util::detail::Append (Res &result, T &&val, decltype(result.insert(std::forward< T >(val))) *=nullptr)
 
template<typename C >
constexpr bool LeechCraft::Util::detail::IsSimpleContainer ()
 
template<template< typename... > class Fallback, bool ForceFallback, typename Container , typename F >
auto LeechCraft::Util::detail::MapImpl (Container &&c, F f)
 
template<typename Container , typename F >
auto LeechCraft::Util::Map (Container &&c, F f)
 
template<template< typename... > class Fallback, typename Container , typename F >
auto LeechCraft::Util::MapAs (Container &&c, F &&f)
 
template<typename T , template< typename U > class Container, typename F >
Container< T > LeechCraft::Util::Filter (const Container< T > &c, F f)
 
template<template< typename > class Container, typename T >
Container< T > LeechCraft::Util::Concat (const Container< Container< T >> &containers)
 
template<template< typename... > class Container, typename... ContArgs>
auto LeechCraft::Util::Concat (const Container< ContArgs... > &containers) -> std::decay_t< decltype(*containers.begin())>
 
template<typename Cont , typename F >
auto LeechCraft::Util::ConcatMap (Cont &&c, F &&f)
 
template<template< typename > class Container, typename T >
Container< Container< T > > LeechCraft::Util::SplitInto (size_t numChunks, const Container< T > &container)
 
template<template< typename Pair, typename... Rest > class Cont, template< typename K, typename V > class Pair, typename K , typename V , typename KV , typename... Rest>
boost::optional< V > LeechCraft::Util::Lookup (const KV &key, const Cont< Pair< K, V >, Rest... > &cont)
 
template<typename Cont >
Cont LeechCraft::Util::Sorted (Cont &&cont)
 
template<typename R >
auto LeechCraft::Util::ComparingBy (R r)
 
template<typename R >
auto LeechCraft::Util::EqualityBy (R r)
 
template<typename F >
auto LeechCraft::Util::First (F &&f)
 
template<typename F >
auto LeechCraft::Util::Second (F &&f)
 
template<typename F >
auto LeechCraft::Util::Flip (F &&f)
 

Variables

template<typename T >
constexpr bool LeechCraft::Util::detail::IsNotBrokenSFINAE_v = IsNotBrokenSFINAE<T> {}
 
const auto LeechCraft::Util::Id = [] (const auto& t) { return t; }
 
const auto LeechCraft::Util::Apply = [] (const auto& t) { return t (); }
 
const auto LeechCraft::Util::Fst = [] (const auto& pair) { return pair.first; }
 
const auto LeechCraft::Util::Snd = [] (const auto& pair) { return pair.second; }