//go:build !no_gotd_slices
// +build !no_gotd_slices

// Code generated by gotdgen, DO NOT EDIT.

package tg

import (
	
	
	
	
	

	

	
	
	
	
)

// No-op definition for keeping imports.
var (
	_ = bin.Buffer{}
	_ = context.Background()
	_ = fmt.Stringer(nil)
	_ = strings.Builder{}
	_ = errors.Is
	_ = multierr.AppendInto
	_ = sort.Ints
	_ = tdp.Format
	_ = tgerr.Error{}
	_ = tdjson.Encoder{}
)

// AccountEmailVerifiedClassArray is adapter for slice of AccountEmailVerifiedClass.
type AccountEmailVerifiedClassArray []AccountEmailVerifiedClass

// Sort sorts slice of AccountEmailVerifiedClass.
func ( AccountEmailVerifiedClassArray) ( func(,  AccountEmailVerifiedClass) bool) AccountEmailVerifiedClassArray {
	sort.Slice(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// SortStable sorts slice of AccountEmailVerifiedClass.
func ( AccountEmailVerifiedClassArray) ( func(,  AccountEmailVerifiedClass) bool) AccountEmailVerifiedClassArray {
	sort.SliceStable(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// Retain filters in-place slice of AccountEmailVerifiedClass.
func ( AccountEmailVerifiedClassArray) ( func( AccountEmailVerifiedClass) bool) AccountEmailVerifiedClassArray {
	 := 0
	for ,  := range  {
		if () {
			[] = 
			++
		}
	}
	 = [:]

	return 
}

// First returns first element of slice (if exists).
func ( AccountEmailVerifiedClassArray) () ( AccountEmailVerifiedClass,  bool) {
	if len() < 1 {
		return
	}
	return [0], true
}

// Last returns last element of slice (if exists).
func ( AccountEmailVerifiedClassArray) () ( AccountEmailVerifiedClass,  bool) {
	if len() < 1 {
		return
	}
	return [len()-1], true
}

// PopFirst returns first element of slice (if exists) and deletes it.
func ( *AccountEmailVerifiedClassArray) () ( AccountEmailVerifiedClass,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [0]

	// Delete by index from SliceTricks.
	copy([0:], [1:])
	var  AccountEmailVerifiedClass
	[len()-1] = 
	 = [:len()-1]
	* = 

	return , true
}

// Pop returns last element of slice (if exists) and deletes it.
func ( *AccountEmailVerifiedClassArray) () ( AccountEmailVerifiedClass,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [len()-1]
	 = [:len()-1]
	* = 

	return , true
}

// AsAccountEmailVerified returns copy with only AccountEmailVerified constructors.
func ( AccountEmailVerifiedClassArray) () ( AccountEmailVerifiedArray) {
	for ,  := range  {
		,  := .(*AccountEmailVerified)
		if ! {
			continue
		}
		 = append(, *)
	}

	return 
}

// AsAccountEmailVerifiedLogin returns copy with only AccountEmailVerifiedLogin constructors.
func ( AccountEmailVerifiedClassArray) () ( AccountEmailVerifiedLoginArray) {
	for ,  := range  {
		,  := .(*AccountEmailVerifiedLogin)
		if ! {
			continue
		}
		 = append(, *)
	}

	return 
}

// AccountEmailVerifiedArray is adapter for slice of AccountEmailVerified.
type AccountEmailVerifiedArray []AccountEmailVerified

// Sort sorts slice of AccountEmailVerified.
func ( AccountEmailVerifiedArray) ( func(,  AccountEmailVerified) bool) AccountEmailVerifiedArray {
	sort.Slice(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// SortStable sorts slice of AccountEmailVerified.
func ( AccountEmailVerifiedArray) ( func(,  AccountEmailVerified) bool) AccountEmailVerifiedArray {
	sort.SliceStable(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// Retain filters in-place slice of AccountEmailVerified.
func ( AccountEmailVerifiedArray) ( func( AccountEmailVerified) bool) AccountEmailVerifiedArray {
	 := 0
	for ,  := range  {
		if () {
			[] = 
			++
		}
	}
	 = [:]

	return 
}

// First returns first element of slice (if exists).
func ( AccountEmailVerifiedArray) () ( AccountEmailVerified,  bool) {
	if len() < 1 {
		return
	}
	return [0], true
}

// Last returns last element of slice (if exists).
func ( AccountEmailVerifiedArray) () ( AccountEmailVerified,  bool) {
	if len() < 1 {
		return
	}
	return [len()-1], true
}

// PopFirst returns first element of slice (if exists) and deletes it.
func ( *AccountEmailVerifiedArray) () ( AccountEmailVerified,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [0]

	// Delete by index from SliceTricks.
	copy([0:], [1:])
	var  AccountEmailVerified
	[len()-1] = 
	 = [:len()-1]
	* = 

	return , true
}

// Pop returns last element of slice (if exists) and deletes it.
func ( *AccountEmailVerifiedArray) () ( AccountEmailVerified,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [len()-1]
	 = [:len()-1]
	* = 

	return , true
}

// AccountEmailVerifiedLoginArray is adapter for slice of AccountEmailVerifiedLogin.
type AccountEmailVerifiedLoginArray []AccountEmailVerifiedLogin

// Sort sorts slice of AccountEmailVerifiedLogin.
func ( AccountEmailVerifiedLoginArray) ( func(,  AccountEmailVerifiedLogin) bool) AccountEmailVerifiedLoginArray {
	sort.Slice(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// SortStable sorts slice of AccountEmailVerifiedLogin.
func ( AccountEmailVerifiedLoginArray) ( func(,  AccountEmailVerifiedLogin) bool) AccountEmailVerifiedLoginArray {
	sort.SliceStable(, func(,  int) bool {
		return ([], [])
	})
	return 
}

// Retain filters in-place slice of AccountEmailVerifiedLogin.
func ( AccountEmailVerifiedLoginArray) ( func( AccountEmailVerifiedLogin) bool) AccountEmailVerifiedLoginArray {
	 := 0
	for ,  := range  {
		if () {
			[] = 
			++
		}
	}
	 = [:]

	return 
}

// First returns first element of slice (if exists).
func ( AccountEmailVerifiedLoginArray) () ( AccountEmailVerifiedLogin,  bool) {
	if len() < 1 {
		return
	}
	return [0], true
}

// Last returns last element of slice (if exists).
func ( AccountEmailVerifiedLoginArray) () ( AccountEmailVerifiedLogin,  bool) {
	if len() < 1 {
		return
	}
	return [len()-1], true
}

// PopFirst returns first element of slice (if exists) and deletes it.
func ( *AccountEmailVerifiedLoginArray) () ( AccountEmailVerifiedLogin,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [0]

	// Delete by index from SliceTricks.
	copy([0:], [1:])
	var  AccountEmailVerifiedLogin
	[len()-1] = 
	 = [:len()-1]
	* = 

	return , true
}

// Pop returns last element of slice (if exists) and deletes it.
func ( *AccountEmailVerifiedLoginArray) () ( AccountEmailVerifiedLogin,  bool) {
	if  == nil || len(*) < 1 {
		return
	}

	 := *
	 = [len()-1]
	 = [:len()-1]
	* = 

	return , true
}