1 #ifndef LXGUI_UTILS_STD_HPP
2 #define LXGUI_UTILS_STD_HPP
4 #include "lxgui/lxgui.hpp"
13 template<
typename C,
typename T>
14 auto find(C& v,
const T& s) {
15 return std::find(v.begin(), v.end(), s);
18 template<
typename C,
typename T>
20 return std::find_if(v.begin(), v.end(), std::forward<T>(f));
27 template<
class T, std::
size_t N>
28 ostream& operator<<(ostream& o,
const array<T, N>& a) {
30 for (std::size_t i = 0; i < N; ++i) {
41 ostream&
operator<<(ostream& o,
const vector<T>& a) {
43 const std::size_t n = a.size();
44 for (std::size_t i = 0; i < n; ++i) {
std::ostream & operator<<(std::ostream &stream, const color &c)
auto find(C &v, const T &s)
auto find_if(C &v, T &&f)