Female Police searching a male suspect

I was put under arrest for a certain offence and taken to the police. Surprisingly, although I am a man, I was searched by a female police officer. Is this allowed under our laws?
AJ, Arusha

Unfortunately there is no express provision of the law that bars a female police from searching the body of a male suspect. Therefore a male suspect can be searched by a female police. However, section 26 of the Criminal Procedure Act [Cap. 20 R.E] bars a male police from searching a female suspect.