BioC++ core-0.7.0
The Modern C++ libraries for Bioinformatics.
 
Loading...
Searching...
No Matches
bio::alphabet::nucleotide Concept Reference

A concept that indicates whether an alphabet represents nucleotides. More...

#include <bio/alphabet/nucleotide/concept.hpp>

Concept definition

template<typename t>
concept bio::alphabet::nucleotide = alphabet<t> && requires(t val) {
{
};
}
The generic alphabet concept that covers most data types used in ranges.
Definition: concept.hpp:643
A concept that indicates whether an alphabet represents nucleotides.
Definition: concept.hpp:113
constexpr auto complement
Return the complement of a nucleotide object.
Definition: concept.hpp:68

Detailed Description

A concept that indicates whether an alphabet represents nucleotides.

In addition to the requirements for bio::alphabet::alphabet, the nucleotide concept introduces a requirement for a complement function: bio::alphabet::complement.

Requirements

  1. t shall model bio::alphabet::alphabet
  2. bio::alphabet::complement needs to be defined for objects of type t

See the documentation pages for the respective requirements.

Related types

If an object type t models this concept, the following types typically do so, as well:

  • t &
  • t const
  • t const &