malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Utilities
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
9
#include <
Malena/Core/malena_export.h
>
10
#include <
SFML/System/Vector2.hpp
>
11
#include <type_traits>
12
13
namespace
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
Vector2.hpp
malena_export.h
ml::detail
Definition
HasSetSize.h:14