This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef HEALTHBAR_HPP | |
| #define HEALTHBAR_HPP | |
| #include "observer.hpp" | |
| #include <iostream> | |
| class healthbar : public observer | |
| { | |
| public: | |
| virtual ~healthbar() = default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef MVG_MULTI_ITERATOR_HPP_ | |
| #define MVG_MULTI_ITERATOR_HPP_ | |
| #include <tuple> | |
| #include <algorithm> | |
| #include <iterator> //To specialize std::iterator_traits<T> | |
| #include <cstddef> //For std::size_t | |
| #include <type_traits> | |
| #include <cassert> | |
| #include <utility> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include "def.hpp" | |
| #include "utility.hpp" | |
| #ifndef UNREAL_BUILD | |
| #include <iostream> | |
| #endif | |
| namespace bbstl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include "def.hpp" | |
| #include "utility.hpp" | |
| #include "exception.hpp" | |
| #ifndef UNREAL_BUILD | |
| #include <iostream> | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include "def.hpp" | |
| #include "utility.hpp" | |
| #include "exception.hpp" | |
| #ifndef UNREAL_BUILD | |
| #include <iostream> | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef MVG_ARGPACK_UTILITY_HPP_ | |
| #define MVG_ARGPACK_UTILITY_HPP_ | |
| #include <cstddef> //std::size_t | |
| namespace mvg | |
| { | |
| namespace detail | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef MVG_TYPE_LIST_HPP_ | |
| #define MVG_TYPE_LIST_HPP_ | |
| #include <tuple> | |
| #include "argpack_util.hpp" | |
| namespace mvg | |
| { | |
| template<typename...Ts> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace detail | |
| { | |
| template<std::size_t I, template<typename> typename Pred, typename TList, typename Res> | |
| struct filter_if_impl; | |
| /* | |
| *Message to future me: | |
| *10 minutes after writing this, I don't understand how it works anymore | |
| *Please don't try | |
| **/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace detail | |
| { | |
| template<std::size_t I, template<typename> typename Pred, typename TList, typename Res> | |
| struct filter_if_impl; | |
| template<template<typename> typename Pred, typename... Ts, typename... Res> | |
| struct filter_if_impl<1, Pred, type_list<Ts...>, type_list<Res...>> | |
| //specialization for last element to end recursion (or fist, whatever, we are iterating backwards here) | |
| { | |
| using T = typename type_list<Ts...>::template at<type_list<Ts...>::size - 1>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template<template<typename> typename F> | |
| struct bool_metafunc | |
| { | |
| template<typename T> | |
| struct negate | |
| { | |
| static constexpr bool value = !(F<T>::value); | |
| }; | |
| template<template<typename> typename Other> |
OlderNewer