VirtualBox

Changeset 73957 in vbox


Ignore:
Timestamp:
Aug 29, 2018 3:12:43 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124686
Message:

IPRT/rest: Added RTJsonIteratorBeginArray and RTJsonIteratorBeginObject for more accurate JSON decoding. Early RTCRestArray implementation. bugref:9167 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/restbase.h

    r73956 r73957  
    749749     * @param   a_pThat         The object to insert.  The array takes ownership of the object on success.
    750750     */
    751     int append(size_t a_idx, ElementType *a_pThat)
     751    int append(ElementType *a_pThat)
    752752    {
    753753        return insertWorker(~(size_t)0, a_pThat, false /*a_fReplace*/);
     
    846846     * @returns The first object, NULL if empty.
    847847     */
    848     ElementType *first(size_t a_idx)
     848    ElementType *first()
    849849    {
    850850        return at(0);
     
    855855     * @returns The first object, NULL if empty.
    856856     */
    857     ElementType const *first(size_t a_idx) const
     857    ElementType const *first() const
    858858    {
    859859        return at(0);
     
    864864     * @returns The last object, NULL if empty.
    865865     */
    866     ElementType *last(size_t a_idx)
     866    ElementType *last()
    867867    {
    868868        return at(m_cElements - 1);
     
    873873     * @returns The last object, NULL if empty.
    874874     */
    875     ElementType const *last(size_t a_idx) const
     875    ElementType const *last() const
    876876    {
    877877        return at(m_cElements - 1);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette