Poco::Impl

class Ptr

Library: Foundation
Package: Core
Header: Poco/NumericString.h

Description

Utility char pointer wrapper class. Class ensures increment/decrement remain within boundaries.

Member Summary

Member Functions: operator ++, operator +=, operator --, operator -=, operator char *, span

Constructors

Ptr inline

Ptr(
    char * ptr,
    std::size_t offset
);

Member Functions

operator ++ inline

char * & operator ++ ();

operator ++ inline

char * operator ++ (
    int
);

operator += inline

char * & operator += (
    int incr
);

operator -- inline

char * & operator -- ();

operator -- inline

char * operator -- (
    int
);

operator -= inline

char * & operator -= (
    int decr
);

operator char * inline

operator char * () const;

span inline

std::size_t span() const;