Replace typedef keywords by using
This commit is contained in:
@@ -195,10 +195,10 @@ namespace Nz
|
||||
return reversed;
|
||||
}
|
||||
|
||||
template<typename T> struct PointedType<T*> {typedef T type;};
|
||||
template<typename T> struct PointedType<T* const> {typedef T type;};
|
||||
template<typename T> struct PointedType<T* volatile> {typedef T type;};
|
||||
template<typename T> struct PointedType<T* const volatile> {typedef T type;};
|
||||
template<typename T> struct PointedType<T*> { using type = T; };
|
||||
template<typename T> struct PointedType<T* const> { using type = T; };
|
||||
template<typename T> struct PointedType<T* volatile> { using type = T; };
|
||||
template<typename T> struct PointedType<T* const volatile> { using type = T; };
|
||||
|
||||
|
||||
template<typename T>
|
||||
|
||||
@@ -81,8 +81,8 @@ namespace Nz
|
||||
template<typename T> bool operator>=(const T& lhs, const ObjectHandle<T>& rhs);
|
||||
template<typename T> bool operator>=(const ObjectHandle<T>& lhs, const T& rhs);
|
||||
|
||||
template<typename T> struct PointedType<ObjectHandle<T>> { typedef T type; };
|
||||
template<typename T> struct PointedType<const ObjectHandle<T>> { typedef T type; };
|
||||
template<typename T> struct PointedType<ObjectHandle<T>> { using type = T; };
|
||||
template<typename T> struct PointedType<const ObjectHandle<T>> { using type = T; };
|
||||
}
|
||||
|
||||
namespace std
|
||||
|
||||
@@ -69,8 +69,8 @@ namespace Nz
|
||||
template<typename T> bool operator>=(const ObjectRef<T>& lhs, const T& rhs);
|
||||
|
||||
|
||||
template<typename T> struct PointedType<ObjectRef<T>> { typedef T type; };
|
||||
template<typename T> struct PointedType<ObjectRef<T> const> { typedef T type; };
|
||||
template<typename T> struct PointedType<ObjectRef<T>> { using type = T; };
|
||||
template<typename T> struct PointedType<ObjectRef<T> const> { using type = T; };
|
||||
}
|
||||
|
||||
#include <Nazara/Core/ObjectRef.inl>
|
||||
|
||||
@@ -189,10 +189,10 @@ namespace Nz
|
||||
//char* rend();
|
||||
//const char* rend() const;
|
||||
|
||||
typedef const char& const_reference;
|
||||
typedef char* iterator;
|
||||
//typedef char* reverse_iterator;
|
||||
typedef char value_type;
|
||||
using const_reference = const char&;
|
||||
using iterator = char*;
|
||||
//using reverse_iterator = char*;
|
||||
using value_type = char;
|
||||
// Méthodes STD
|
||||
|
||||
char& operator[](std::size_t pos);
|
||||
|
||||
Reference in New Issue
Block a user