use #pragma once

This commit is contained in:
Garux
2021-10-22 02:19:50 +03:00
parent 3362f29500
commit bf6389fc26
374 changed files with 400 additions and 1565 deletions

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_CONTAINER_ARRAY_H )
#define INCLUDED_CONTAINER_ARRAY_H
#pragma once
#include <cstddef>
#include <algorithm>
@@ -166,5 +165,3 @@ inline void swap( Array<Element, Allocator>& self, Array<Element, Allocator>& ot
self.swap( other );
}
}
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_CONTAINER_CACHE_H )
#define INCLUDED_CONTAINER_CACHE_H
#pragma once
#include <cstddef>
#include "container/hashtable.h"
@@ -173,6 +172,3 @@ public:
m_map.clear();
}
};
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_CONTAINER_CONTAINER_H )
#define INCLUDED_CONTAINER_CONTAINER_H
#pragma once
#include <list>
#include <set>
@@ -366,6 +365,3 @@ public:
}
}
};
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_CONTAINER_HASHFUNC_H )
#define INCLUDED_CONTAINER_HASHFUNC_H
#pragma once
#include <cctype>
#include "string/string.h"
@@ -398,7 +397,3 @@ struct HashKeyHasher
return key.hash();
}
};
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_CONTAINER_HASHTABLE_H )
#define INCLUDED_CONTAINER_HASHTABLE_H
#pragma once
#include <cstddef>
#include <algorithm>
@@ -406,5 +405,3 @@ public:
tmp.swap( *this );
}
};
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_CONTAINER_STACK_H )
#define INCLUDED_CONTAINER_STACK_H
#pragma once
#include "memory/allocator.h"
#include <algorithm>
@@ -207,5 +206,3 @@ inline void swap( Stack<Type>& self, Stack<Type>& other ){
self.swap( other );
}
}
#endif