Struct adl_meta_pointer_like

Synopsis

#include <src/entt/meta/adl_pointer.hpp>

template<typename Type>
struct adl_meta_pointer_like

Description

Fake ADL based lookup function for meta pointer-like types.

Template Parameters

Type - Element type.

Mentioned in

Methods

dereferenceUses the default ADL based lookup method to resolve the call.

Source

Lines 24-34 in src/entt/meta/adl_pointer.hpp.

template<typename Type>
struct adl_meta_pointer_like {
    /**
     * @brief Uses the default ADL based lookup method to resolve the call.
     * @param value A pointer-like object.
     * @return The value returned from the dereferenced pointer.
     */
    static decltype(auto) dereference(const Type &value) {
        return dereference_meta_pointer_like(value);
    }
};





Add Discussion

Log in to comment