Loading...
Searching...
No Matches
HasSetSize.h
Go to the documentation of this file.
1// Copyright (c) 2025 Dave R. Smith. All rights reserved.
2// Malena Framework — Proprietary Software. See LICENSE for terms.
3
4#ifndef MALENA_HAS_SETSIZE_H
5#define MALENA_HAS_SETSIZE_H
6
7#pragma once
8
11#include <type_traits>
12
13namespace ml::detail
14{
16 template<typename T, typename = void>
17 struct has_setSize : std::false_type {};
18
19 template<typename T>
20 struct has_setSize<T, std::void_t<
21 decltype(std::declval<T&>().setSize(std::declval<sf::Vector2f>()))
22 >> : std::true_type {};
24
25} // namespace ml::detail
26
27#endif // MALENA_HAS_SETSIZE_H