Change typedef to using.

Conflicts:
	src/ripple/app/TODO.md
	src/ripple/app/ledger/Ledger.h
	src/ripple/protocol/Protocol.h
This commit is contained in:
Howard Hinnant
2015-05-21 19:12:10 -04:00
committed by Vinnie Falco
parent 52f298f150
commit 155fcdbcd0
224 changed files with 790 additions and 844 deletions

View File

@@ -46,8 +46,8 @@ template <
class KeyCache
{
public:
typedef Key key_type;
typedef beast::abstract_clock <std::chrono::steady_clock> clock_type;
using key_type = Key;
using clock_type = beast::abstract_clock <std::chrono::steady_clock>;
private:
struct Stats
@@ -80,12 +80,12 @@ private:
clock_type::time_point last_access;
};
typedef hardened_hash_map <key_type, Entry, Hash, KeyEqual> map_type;
typedef typename map_type::iterator iterator;
typedef std::lock_guard <Mutex> lock_guard;
using map_type = hardened_hash_map <key_type, Entry, Hash, KeyEqual>;
using iterator = typename map_type::iterator;
using lock_guard = std::lock_guard <Mutex>;
public:
typedef typename map_type::size_type size_type;
using size_type = typename map_type::size_type;
private:
Mutex mutable m_mutex;