MOS Source Code
Loading...
Searching...
No Matches
mos Namespace Reference

Namespaces

namespace  string_literals
 

Classes

struct  __shared_ptr_core
 
class  basic_string
 
class  basic_string_view
 
struct  default_allocator
 
class  HashMap
 
struct  InitOnce
 
class  list
 
struct  NamedType
 
class  shared_ptr
 
struct  Slab
 
struct  string_literal
 
class  weak_ptr
 

Concepts

concept  HasTypeName
 

Typedefs

using string = mos::basic_string<char, mos::default_allocator>
 
typedef basic_string_view< char > string_view
 

Functions

template<typename T, typename... Args>
requires HasTypeName<T>
T * create (Args &&...args)
 
template<typename T, typename... Args>
T * create (Args &&...args)
 
template<typename T, typename... Args>
requires HasTypeName<T>
shared_ptr< T > make_shared (Args &&...args)
 
template<typename CharT>
constexpr auto generic_strlen (const CharT *c)
 
template<typename CharT>
constexpr auto generic_strnlen (const CharT *c, size_t max)
 
template<typename CharT>
constexpr auto generic_strncmp (const CharT *a, const CharT *b, size_t n)
 
template<typename T>
static consteval string_view getTypeName ()
 

Variables

constexpr size_t short_string_capacity = 16
 

Typedef Documentation

◆ string

Definition at line 336 of file string.hpp.

◆ string_view

Definition at line 113 of file string_view.hpp.

Function Documentation

◆ create() [1/2]

◆ create() [2/2]

◆ make_shared()

template<typename T, typename... Args>
requires HasTypeName<T>
shared_ptr< T > make_shared ( Args &&... args)

Definition at line 347 of file shared_ptr.hpp.

Referenced by dentry_mount().

+ Here is the call graph for this function:

◆ generic_strlen()

◆ generic_strnlen()

template<typename CharT>
auto generic_strnlen ( const CharT * c,
size_t max )
constexpr

Definition at line 24 of file string_view.hpp.

◆ generic_strncmp()

template<typename CharT>
auto generic_strncmp ( const CharT * a,
const CharT * b,
size_t n )
constexpr

◆ getTypeName()

template<typename T>
static consteval string_view getTypeName ( )
staticconsteval

Definition at line 55 of file type_utils.hpp.

Referenced by Slab< T >::Slab().

+ Here is the call graph for this function:

Variable Documentation

◆ short_string_capacity