Struct basic_dynamic_container

Synopsis

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

template<typename Container>
struct basic_dynamic_container

Description

Basic STL-compatible dynamic container traits.

Template Parameters

Container - The type of the container.

Methods

clearClears the content of the given container.

Source

Lines 96-106 in src/entt/meta/container.hpp.

template<typename Container>
struct basic_dynamic_container {
    /**
     * @brief Clears the content of the given container.
     * @param cont The container for which to clear the content.
     * @return True in case of success, false otherwise.
     */
    [[nodiscard]] static bool clear(Container &cont) {
        return cont.clear(), true;
    }
};





Add Discussion

Log in to comment