NTLib - Number Theory Library 0.9
Loading...
Searching...
No Matches
ntlib::sieve_235< Allocator >::reference Class Reference

Public Member Functions

reference & operator= (bool val)
 operator bool () const

Friends

class sieve_235

Detailed Description

template<class Allocator = std::allocator<std::byte>>
class ntlib::sieve_235< Allocator >::reference

A proxy class to provide an lvalue that can be returned from operator[].

Member Function Documentation

◆ operator bool()

template<class Allocator = std::allocator<std::byte>>
ntlib::sieve_235< Allocator >::reference::operator bool ( ) const
inlinenodiscard

Returns the value of the current element.

Returns
Whether the current element is true or false.

◆ operator=()

template<class Allocator = std::allocator<std::byte>>
reference & ntlib::sieve_235< Allocator >::reference::operator= ( bool val)
inline

Assigns a value to the referenced sieve entry.

Parameters
valThe value to set the current element to. If the element is a multiple of 2, 3 or 5 and val is true, this operation is ignored.
Returns
Reference to this reference object.

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