ChaiScript
Public Member Functions | List of all members
ChaiScript_Language::Const_Range Class Reference

A concept in ChaiScript that is implemented by string, Vector and Map. More...

#include <chaiscript_prelude_docs.hpp>

Public Member Functions

const Object back ()
 Returns the last item of the range.
 
bool empty () const
 Returns true if the front and back pointers have passed each other, if no items are left in the Range.
 
const Object front ()
 Returns the first item of the range.
 
void pop_back ()
 Moves the back pointer back one. More...
 
void pop_front ()
 Moves the front pointer forward one. More...
 

Detailed Description

A concept in ChaiScript that is implemented by string, Vector and Map.

It provides easy iteration over the elements in a container. Contained values are const.

Implemented by the template chaiscript::bootstrap::standard_library::Const_Bidir_Range

See also
Range

Member Function Documentation

◆ pop_back()

void ChaiScript_Language::Const_Range::pop_back ( )

Moves the back pointer back one.

Postcondition
back() returns the element at back() - 1;

◆ pop_front()

void ChaiScript_Language::Const_Range::pop_front ( )

Moves the front pointer forward one.

Postcondition
front() returns the element at front() + 1;

The documentation for this class was generated from the following file: