PrevUpHomeNext

Struct template grapheme_ref

boost::text::grapheme_ref

Synopsis

// In header: <boost/text/grapheme.hpp>

template<code_point_iter I> 
struct grapheme_ref : public boost::text::utf32_view< I > {
  // types
  typedef I iterator;

  // construct/copy/destruct
  grapheme_ref() = default;
  grapheme_ref(iterator, iterator);
  grapheme_ref(utf32_view< iterator >);
  grapheme_ref(grapheme const &);

  // friend functions
  constexpr bool operator==(grapheme_ref, grapheme_ref);
};

Description

A non-owning reference to a range of code points that comprise a grapheme.

grapheme_ref public construct/copy/destruct

  1. grapheme_ref() = default;

    Default ctor.

  2. grapheme_ref(iterator first, iterator last);

    Constructs *this from the code points [first, last).

    Requires:

    The code points in [first, last) comprise at most one grapheme.

  3. grapheme_ref(utf32_view< iterator > r);

    Constructs *this from r.

    Requires:

    The code points in r comprise at most one grapheme.

  4. grapheme_ref(grapheme const & g);

    Constructs *this from g.

grapheme_ref friend functions

  1. constexpr bool operator==(grapheme_ref lhs, grapheme_ref rhs);

    Returns true if lhs the same sequence of code points as rhs.


PrevUpHomeNext