AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
Useful templates

Detailed Description

AUI template library.

Namespaces

namespace  aui::parameter_pack
 Provides an easy way to iterate over a parameter pack.
 

Classes

class  AOptional< T >
 Utility wrapper implementing the stack-allocated (fast) optional idiom. More...
 
struct  aui::zip< Containers >
 Iterates multiple containers in parallel. More...
 
struct  aui::ranged_number< UnderlyingType, min, max >
 Clamps the possible values for a number to the specified range: [min;max]. More...
 
struct  aui::fast_pimpl< T, storageSize, storageAlignment >
 Utility wrapper implementing the stack-allocated (fast) pimpl idiom. More...
 

Variables

template<typename T, class = void>
constexpr bool aui::is_complete = false
 Determines whether T is complete or not.
 
template<typename T>
constexpr bool aui::is_complete< T, decltype(void(sizeof(T)))> = true
 Determines whether T is complete or not.
 
template<typename... Args>
constexpr impl::select_overload< Args... > aui::select_overload = {}
 Chooses specific overload of a method.
 

Variable Documentation

◆ select_overload

template<typename... Args>
impl::select_overload<Args...> aui::select_overload = {}
constexpr

Chooses specific overload of a method.

Example:

struct GameObject {
public:
void setPos(glm::vec3);
void setPos(glm::vec2);
};
...
auto setPosVec2 = aui::select_overload<glm::vec2>(&GameObject::setPos);
constexpr impl::select_overload< Args... > select_overload
Chooses specific overload of a method.
Definition types.h:59
Collaboration diagram for Useful templates: