mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 02:06:04 +02:00
C++1x-ification
This commit is contained in:
@@ -35,7 +35,7 @@ class Redis_API Array
|
||||
/// value.
|
||||
{
|
||||
public:
|
||||
typedef std::vector<RedisType::Ptr>::const_iterator const_iterator;
|
||||
using const_iterator = std::vector<RedisType::Ptr>::const_iterator;
|
||||
|
||||
Array();
|
||||
/// Creates an Array. As long as there are no elements added,
|
||||
|
||||
@@ -37,7 +37,7 @@ class Redis_API Client
|
||||
/// bit integer, a simple string, a bulk string, an array or an error. The
|
||||
/// first element of the command array is the Redis command. A simple string
|
||||
/// is a string that cannot contain a CR or LF character. A bulk string is
|
||||
/// implemented as a typedef for Poco::Nullable<std::string>. This is
|
||||
/// implemented as an alias for Poco::Nullable<std::string>. This is
|
||||
/// because a bulk string can represent a Null value.
|
||||
///
|
||||
/// BulkString bs = client.execute<BulkString>(...);
|
||||
@@ -71,7 +71,7 @@ class Redis_API Client
|
||||
/// command << "list";
|
||||
{
|
||||
public:
|
||||
typedef SharedPtr<Client> Ptr;
|
||||
using Ptr = SharedPtr<Client>;
|
||||
|
||||
Client();
|
||||
/// Creates an unconnected Client.
|
||||
|
||||
@@ -49,7 +49,7 @@ class Redis_API Command: public Array
|
||||
///
|
||||
{
|
||||
public:
|
||||
typedef std::vector<std::string> StringVec;
|
||||
using StringVec = std::vector<std::string>;
|
||||
|
||||
Command(const std::string& command);
|
||||
/// Creates a command.
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
REDIS_ERROR /// Redis Error
|
||||
};
|
||||
|
||||
typedef SharedPtr<RedisType> Ptr;
|
||||
using Ptr = SharedPtr<RedisType>;
|
||||
|
||||
RedisType();
|
||||
/// Creates the RedisType.
|
||||
@@ -174,9 +174,9 @@ struct RedisTypeTraits<std::string>
|
||||
};
|
||||
|
||||
|
||||
typedef Nullable<std::string> BulkString;
|
||||
using BulkString = Nullable<std::string>;
|
||||
/// A bulk string is a string that can contain a NULL value.
|
||||
/// So, BulkString is a typedef for Nullable<std::string>.
|
||||
/// So, BulkString is an alias for Nullable<std::string>.
|
||||
|
||||
|
||||
template<>
|
||||
|
||||
Reference in New Issue
Block a user