EnTT: entt::resource_loader< Type > Struct Template Reference

EnTT 3.15.0

Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
entt::resource_loader< Type > Struct Template Reference

Transparent loader for shared resources. More...

`#include <loader.hpp>`

## Public Types
using | result_type = std::shared_ptr<Type>
| Result type.

## Public Member Functions
template<typename... Args>
result_type | operator() (Args &&...args) const
| Constructs a shared pointer to a resource from its arguments.

## Detailed Description

template<typename Type>
struct entt::resource_loader< Type >

Transparent loader for shared resources.

Template Parameters

  Type | Type of resources created by the loader.

Definition at line 15 of file loader.hpp.

## Member Typedef Documentation

## ◆ result_type

template<typename Type>

using entt::resource_loader< Type >::result_type = std::shared_ptr<Type>

Result type.

Definition at line 17 of file loader.hpp.

## Member Function Documentation

## ◆ operator()()

template<typename Type>
template<typename... Args>

result_type entt::resource_loader< Type >::operator() | ( | Args &&... | args | ) | const
| inline

Constructs a shared pointer to a resource from its arguments.

Template Parameters

  Args | Types of arguments to use to construct the resource.

Parameters

  args | Parameters to use to construct the resource.

Returns
  A shared pointer to a resource of the given type.

Definition at line 26 of file loader.hpp.

The documentation for this struct was generated from the following files:

- src/entt/resource/fwd.hpp
- src/entt/resource/loader.hpp